Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/TableDesignerMetadata.cs
Karl Burtram f288bee294 Make nullable warnings a per file opt-in (#1842)
* Make nullable warnings a per file opt-in

* Remove unneeded compiler directives

* Remove compiler directive for User Data
2023-02-03 18:10:07 -08:00

30 lines
839 B
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#nullable disable
using Dac = Microsoft.Data.Tools.Sql.DesignServices.TableDesigner;
namespace Microsoft.SqlTools.ServiceLayer.TableDesigner
{
public static class TableDesignerMetadata
{
public static bool IsNode(this Dac.TableDesigner tableDesigner)
{
return tableDesigner.TableViewModel.IsNode;
}
public static bool IsEdge(this Dac.TableDesigner tableDesigner)
{
return tableDesigner.TableViewModel.IsEdge;
}
public static bool IsSystemVersioned(this Dac.TableDesigner tableDesigner)
{
return tableDesigner.TableViewModel.IsSystemVersioningEnabled;
}
}
}