Open citypermit opened 3 years ago
Hello @citypermit ,
Thank you for reporting.
We will look at it
Best Regards,
Jon
Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations • Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function
Description
We derived from the DevArt OracleConnection to add some functionality. However EF+ batch functions without a table name specified, are throwing exceptions. That is because the EntityContainerEntitySet.GetDestinationTableName function only investigates the top-level type of the DbConnection object. Is it possible to make it more flexible to investigate the type hierarchy? Something like: `public static class Program { public static void Main() { using (var connection = new DerivedOracleConnection(ConfigurationManager.ConnectionStrings["Default"].ConnectionString)) { if (GetTypeHierarchy(connection).Any(type => type.Name == "OracleConnection")) { // ... } } }
}
public class DerivedOracleConnection : Devart.Data.Oracle.OracleConnection { public DerivedOracleConnection(string connectionString) : base(connectionString) { } }`
Exception
Fiddle or Project
Included my test project. The connection string is of course changed. TestConsoleApplication.zip
Further technical details