This question is locked. New answers and comments are not allowed.
Hello,
how can i set the initial sql command after the db connection in the code.
I want to do it somewhere here...
But i can't find the property to store the sql command.
Where can it be done in code?
Thanks,
Richard.
how can i set the initial sql command after the db connection in the code.
I want to do it somewhere here...
protected override MyDomainContext CreateDataContext()
{
XmlMetadataSource metadataSource = XmlMetadataSource.FromAssemblyResource("MyTables.rlinq");
string connectionString = string.Empty;
BackendConfiguration dbConfig = new BackendConfiguration();
dbConfig.initSql = ?????????????
.
.
.
return new MyDomainContext(connectionString, dbConfig, metadataSource);
}
But i can't find the property to store the sql command.
Where can it be done in code?
Thanks,
Richard.