Skip to content

v3.11.8

Choose a tag to compare

@JonathanMagnan JonathanMagnan released this 21 Mar 01:37
· 941 commits to master since this release

Download the library here

ADDED: CustomProvide (Supporting Oracle DataAccessManaged && DevArt)

public class CodeFirstEntities : DbContext
{
	static CodeFirstEntities()
	{
		var customProvider = new CustomProvider(ProviderType.OracleManaged);
		
		customProvider.SetArrayBindCount = (command, i) => ((OracleCommand)((customProvider)command).Inner).ArrayBindCount = i;
		customProvider.SetBindByName = (command, b) => ((OracleCommand)((customProvider)command).Inner).BindByName = b;

		EntityFrameworkManager.CustomProvider = customProvider;
	}
	
	// ...code...
}

public class CodeFirstEntities : DbContext
{
	static CodeFirstEntities()
	{
		var customProvider = new CustomProvider(ProviderType.OracleDevArt);

		customProvider.ExecuteArray = (command, i) => ((Devart.Data.Oracle.OracleCommand)((customProvider)command).Inner).ExecuteArray(i);
		customProvider.SetBindByName = (command, b) => ((Devart.Data.Oracle.OracleCommand)((customProvider)command).Inner).PassParametersByName = b;

		EntityFrameworkManager.CustomProvider = customProvider;
	}
	
	// ...code...
}

PRO Version unlocked for the current month (March)