mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* Major refactor of EditDataMetadata providers * EditMetadataFactory generates "basic" EditTableMetadata objects based entirely on SMO metadata * SmoEditTableMetadata no longer depends on SMO, making it unecessary to mock it * Renamed SmoEditTableMetadata to EditTableMetadata * EditTableMetadata can be extended with DbColumnWrappers * Moving logic for extending a EditColumnMetadata into that class * I *think* this will work for async execution of initialize tasks * Fixing unit tests for new Edit(Table|Column)Metadata classes * Async stuff that works! And passes unit tests * Adding unit tests Adding .idea to gitignore * Adding message to the EditSessionReadyEvent * Fixes from dev merge * Fixing unit tests that Rider didn't catch as failing May have been a bit heavy-handed with the async/await stuff * Couple changes as per PR comments
24 lines
937 B
C#
24 lines
937 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using System.Data.Common;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.EditData
|
|
{
|
|
/// <summary>
|
|
/// Interface for a factory that generates metadata for an object to edit
|
|
/// </summary>
|
|
public interface IEditMetadataFactory
|
|
{
|
|
/// <summary>
|
|
/// Generates a edit-ready metadata object
|
|
/// </summary>
|
|
/// <param name="connection">Connection to use for getting metadata</param>
|
|
/// <param name="objectName">Name of the object to return metadata for</param>
|
|
/// <param name="objectType">Type of the object to return metadata for</param>
|
|
/// <returns>Metadata about the object requested</returns>
|
|
EditTableMetadata GetObjectMetadata(DbConnection connection, string objectName, string objectType);
|
|
}
|
|
} |