mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-21 01:25:42 -05:00
Add getObjects from model request (#1634)
Co-authored-by: Alex Ma <alma1@microsoft.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// Parameters to get objects from SQL model
|
||||
/// </summary>
|
||||
public class GetObjectsFromTSqlModelParams
|
||||
{
|
||||
/// <summary>
|
||||
/// URI of the project file this model is for
|
||||
/// </summary>
|
||||
public string ProjectUri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object types to query
|
||||
/// </summary>
|
||||
public string[] ObjectTypes { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the get objects sql model request
|
||||
/// </summary>
|
||||
class GetObjectsFromTSqlModelRequest
|
||||
{
|
||||
public static readonly RequestType<GetObjectsFromTSqlModelParams, TSqlObjectInfo[]> Type =
|
||||
RequestType<GetObjectsFromTSqlModelParams, TSqlObjectInfo[]>.Create("dacFx/getObjectsFromTSqlModel");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user