mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 17:24:07 -05:00
add table type to process and publish results (#1448)
* add table type to process and publish results * make generic property bag * review comments * remove unused code * edit comment
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user