Пример #1
0
        public SchemaWriter(DbSchema schema, SchemaWriterSettings schemaWriterSettings)
        {
            if (schema == null)
            {
                throw new ArgumentNullException("schema");
            }

            _schema     = schema;
            _ss         = schemaWriterSettings;
            codeGen     = new StringBuilder();
            codeMessage = new StringBuilder();
        }
Пример #2
0
 /// <summary>
 /// Генерация кода c# и запись в файлы *.cs
 /// </summary>
 /// <param name="writerSettings">настройки генератора c# кода</param>
 public void GenerateCSharpCode(SchemaWriterSettings writerSettings)
 {
     writer = new SchemaWriter(schema: schema, schemaWriterSettings: writerSettings);
     writer.WriteAll(FileLocationEdm());
 }