コード例 #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
ファイル: AzdaraPOCO.cs プロジェクト: Flint-San/AzdaraServer
 /// <summary>
 /// Генерация кода c# и запись в файлы *.cs
 /// </summary>
 /// <param name="writerSettings">настройки генератора c# кода</param>
 public void GenerateCSharpCode(SchemaWriterSettings writerSettings)
 {
     writer = new SchemaWriter(schema: schema, schemaWriterSettings: writerSettings);
     writer.WriteAll(FileLocationEdm());
 }