mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 17:24:07 -05:00
* Make nullable warnings a per file opt-in * Remove unneeded compiler directives * Remove compiler directive for User Data
30 lines
839 B
C#
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;
|
|
}
|
|
}
|
|
|
|
} |