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:
Aditya Bist
2022-03-31 21:01:37 -07:00
committed by GitHub
parent 3452c43a51
commit 54dc04c533
5 changed files with 59 additions and 5 deletions

View File

@@ -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;
}
}
}