/// <summary>
 /// Initializes a new instance of the CSharpDatabaseSchemaSerializer class to write to a given TextWriter
 /// </summary>
 /// <param name="writer">The TextWriter to write C# code to</param>
 /// <param name="typeConstructorGenerator">Code generator to use for type creation</param>
 /// <param name="specification">Level of specification to be used constructing SchemaObjects in the generated code</param>
 public CSharpDatabaseSchemaSerializer(SafeIndentedTextWriter writer, IDataTypeConstructorCodeGenerator typeConstructorGenerator, SchemaObjectSpecificationLevel specification)
 {
     this.Writer = writer;
     this.TypeConstructorGenerator = typeConstructorGenerator;
     this.SpecificationLevel = specification;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the CSharpDatabaseSchemaSerializer class to write to a given TextWriter
 /// </summary>
 /// <param name="writer">The TextWriter to write C# code to</param>
 /// <param name="typeConstructorGenerator">Code generator to use for type creation</param>
 /// <param name="specification">Level of specification to be used constructing SchemaObjects in the generated code</param>
 public CSharpDatabaseSchemaSerializer(SafeIndentedTextWriter writer, IDataTypeConstructorCodeGenerator typeConstructorGenerator, SchemaObjectSpecificationLevel specification)
 {
     this.Writer = writer;
     this.TypeConstructorGenerator = typeConstructorGenerator;
     this.SpecificationLevel       = specification;
 }