

Which may be used for generating the required files (CSDL & MSL).īut I'm rather confused. WriteStorageMapping(XmlWriter) Writes the generated mapping specification language (MSL) to an XmlWriter object.WriteStorageMapping(String) Writes the generated mapping specification language (MSL) to the specified file.WriteModelSchema(XmlWriter) Writes the generated conceptual schema definition language (CSDL) to an XmlWriter object.WriteModelSchema(String) Writes the generated conceptual schema definition language (CSDL) to the specified file.That's OK, but how about to get CSDL and MSL files?Īs I understood, it's required to use EntityModelSchemaGenerator class for such an aim from the namespace for generating CSDL and MSL files. I can show you the sample SSDL file I've got: I'm using EntityStoreSchemaGenerator class, which is writing data this way: var store = new EntityStoreSchemaGenerator(providerInvariantName, connectionString, "ShoppingModel") I've achieved how to create SSDL file programmatically in C#. I need this because of the tasks in my work. I'm trying to achieve the dynamic ORM models generation using C# language.
