mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-28 09:35:37 -05:00
* use path to identify edit target * async action * revert RequestContext change * comments * address comments * fix test
35 lines
1.3 KiB
C#
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();
|
|
}
|
|
} |