Now I'm using devart on my project but I could not find a way to initiate the Devart Entities context using it's default constructor.
When I design my classes, the Designer.cs file has this:
Code: Select all
public DataEntities() :
base(@"[email protected]", "DataEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
}
///
/// Initializes a new DataEntities object using the connection string found in the 'DataEntities' section of the application configuration file.
///
public DataEntities(string connectionString) :
base(connectionString, "DataEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
}
///
/// Initialize a new DataEntities object.
///
public DataEntities(EntityConnection connection) : base(connection, "DataEntities")
{
this.ContextOptions.LazyLoadingEnabled = true;
}
Is there a way to get more than one connection/context using devart and override this code that was generated?
Any clues?