private static DataExtensionBuilder AddAccessing(this DataExtensionBuilder builder) { builder.TryAddOrReplaceService <IAccessorManager, InternalAccessorManager>(); builder.TryAddOrReplaceService <IAccessorMigrator, InternalAccessorMigrator>(); builder.TryAddOrReplaceService <IAccessorResolver, InternalAccessorResolver>(); return(builder); }
/// <summary> /// 添加 <typeparamref name="TSeeder"/>。 /// </summary> /// <typeparam name="TSeeder">指定的种子机类型。</typeparam> /// <param name="builder">给定的 <see cref="DataExtensionBuilder"/>。</param> /// <returns>返回 <see cref="DataExtensionBuilder"/>。</returns> public static DataExtensionBuilder AddSeeder <TSeeder>(this DataExtensionBuilder builder) where TSeeder : class, IAccessorSeeder { builder.TryAddOrReplaceService <IAccessorSeeder, TSeeder>(); return(builder); }
private static DataExtensionBuilder AddValueConversion(this DataExtensionBuilder builder) { builder.TryAddOrReplaceService <IEncryptionConverterFactory, InternalEncryptionConverterFactory>(); return(builder); }
private static DataExtensionBuilder AddStoring(this DataExtensionBuilder builder) { builder.TryAddOrReplaceService(typeof(IStore <>), typeof(BaseStore <>)); return(builder); }
private static DataExtensionBuilder AddSharding(this DataExtensionBuilder builder) { builder.TryAddOrReplaceService <IShardingManager, InternalShardingManager>(); return(builder); }
private static DataExtensionBuilder AddIdentification(this DataExtensionBuilder builder) { builder.TryAddOrReplaceService <IIdGeneratorFactory, InternalIdGeneratorFactory>(); return(builder); }