Skip to content

ServiceNow.Core

SNow.Core.IServiceNow

IServiceNow.UsingTable<T>(string, ILogger) Method

Set the table to be used

csharp
SNow.Core.ITable<T> UsingTable<T>(string tableName, Microsoft.Extensions.Logging.ILogger logger=null)
    where T : SNow.Core.Models.ServiceNowBaseModel;

Type parameters

T
Model representing the return type, can use attributes to automatic mapping

Parameters

tableName System.String

logger Microsoft.Extensions.Logging.ILogger

Returns

SNow.Core.ITable<T>

Released under the MIT License.