Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="TEntity"></typeparam>
 /// <param name="tableName"></param>
 /// <param name="dbFields"></param>
 /// <param name="properties"></param>
 /// <param name="entityType"></param>
 /// <param name="identityBehavior"></param>
 /// <param name="dbSetting"></param>
 /// <returns></returns>
 internal static Action <NpgsqlBinaryImporter, TEntity> GetNpgsqlBinaryImporterWriteFunc <TEntity>(string tableName,
                                                                                                   IEnumerable <DbField> dbFields,
                                                                                                   IEnumerable <ClassProperty> properties,
                                                                                                   Type entityType,
                                                                                                   BulkImportIdentityBehavior identityBehavior,
                                                                                                   IDbSetting dbSetting = null)
     where TEntity : class =>
 GetNpgsqlBinaryImporterWriteFuncCache <TEntity> .Get(tableName, dbFields, properties, entityType, identityBehavior, dbSetting);
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tableName"></param>
 /// <param name="mappings"></param>
 /// <param name="entityType"></param>
 /// <returns></returns>
 internal static Action <NpgsqlBinaryImporter, TEntity> GetNpgsqlBinaryImporterWriteFunc <TEntity>(string tableName,
                                                                                                   IEnumerable <NpgsqlBulkInsertMapItem> mappings,
                                                                                                   Type entityType)
     where TEntity : class =>
 GetNpgsqlBinaryImporterWriteFuncCache <TEntity> .Get(tableName, mappings, entityType);