Class ConfigExtensions
Inheritance
System.Object
ConfigExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Pandv.DataAccess
Assembly: cs.temp.dll.dll
Syntax
public static class ConfigExtensions
Methods
BuildConfig(Task<DbConfig>[], DbConfig[])
Declaration
public static Task<DbConfig> BuildConfig(Task<DbConfig>[] vs, DbConfig[] others)
Parameters
Type | Name | Description |
---|---|---|
Task<DbConfig>[] | vs | |
DbConfig[] | others |
Returns
Type | Description |
---|---|
Task<DbConfig> |
UseDataAccessConfig(IServiceCollection, String, Boolean, DbConfig[], String[])
Declaration
public static IServiceCollection UseDataAccessConfig(this IServiceCollection service, string basePath, bool isWatch = false, DbConfig[] others = null, params string[] xmlFiles)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | service | |
System.String | basePath | |
System.Boolean | isWatch | |
DbConfig[] | others | |
System.String[] | xmlFiles |
Returns
Type | Description |
---|---|
IServiceCollection |
UseSqlServer(IServiceCollection)
Declaration
public static IServiceCollection UseSqlServer(this IServiceCollection service)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | service |
Returns
Type | Description |
---|---|
IServiceCollection |