Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/TableDesigner/Contracts/ViewModel/TableColumnViewModel.cs
Alan Ren a3c69f3dd2 use path to identify edit target (#1292)
* use path to identify edit target

* async action

* revert RequestContext change

* comments

* address comments

* fix test
2021-11-10 17:39:48 -08:00

35 lines
1.3 KiB
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Newtonsoft.Json;
namespace Microsoft.SqlTools.ServiceLayer.TableDesigner.Contracts
{
/// <summary>
/// The view model of a table column object
/// </summary>
public class TableColumnViewModel : ObjectViewModelBase
{
public DropdownProperties Type { get; set; } = new DropdownProperties();
public InputBoxProperties Length { get; set; } = new InputBoxProperties();
public InputBoxProperties Scale { get; set; } = new InputBoxProperties();
public InputBoxProperties Precision { get; set; } = new InputBoxProperties();
public CheckBoxProperties AllowNulls { get; set; } = new CheckBoxProperties();
public InputBoxProperties DefaultValue { get; set; } = new InputBoxProperties();
public CheckBoxProperties IsPrimaryKey { get; set; } = new CheckBoxProperties();
public CheckBoxProperties IsIdentity { get; set; } = new CheckBoxProperties();
public InputBoxProperties IdentitySeed { get; set; } = new InputBoxProperties();
public InputBoxProperties IdentityIncrement { get; set; } = new InputBoxProperties();
}
}