Merging metasource for Telerik doesn't build object
Posted: Mon 25 Mar 2019 19:34
I am a long time user of Telelrik and am grateful that you offer the import and support. I have though found an issue on one of the advanced features I used to use in Telerik which doesn't work. I use the Metadatasource to update my models dynamically in code rather than pushing in from your entity developer because when using containers, I need to distribute my app and have it handle the schema changes dynamically. Telerik excelled in this compared to the other platforms imo, and I accomplished it by like below:
then I would check and either get the changes or create the database, which works wonderfully.
When I replace the rlinq with the daml, it won't work. I really wish you would offer an export in compliance with the rlinq format for this reason specifically. It is greatly needed especially in scaling containers for unique client installations.
D.
Code: Select all
MetadataSource customdataSource = Telerik.OpenAccess.Metadata.XmlMetadataSource.FromAssemblyResource("mymodel.rlinq");
Code: Select all
string script = null;
try
{
script = handler.CreateUpdateDDLScript(null);
}
catch
{
try
{
if (handler.CreateDatabase())
script = handler.CreateDDLScript();
else
return false;
}
catch (Exception ex)
{
throw ex;
}
}
if (string.IsNullOrEmpty(script) == false)
handler.ForceExecuteDDLScript(script);
D.