Exemplo n.º 1
0
 public BasicGenerator(GeneratorConfiguration config)
 {
     Config             = config;
     WrapInDoubleQuotes = false;
     Instance           = this;
     DataTypePattern.OnTypePatternsGeneration += OnTypePatternsGenerationEvent;
     DataTypePatterns = DataTypePattern.GetPatterns();
     //AttributePatterns = AttributePattern.GetAttributePatterns();
     AttributeNullFlag  = new AttributePattern(EnumAtrributes.NullFlag, NotNull, "n", true);
     AttributeUnique    = new AttributePattern(EnumAtrributes.Unique, Unique, "u");
     AttributeReference = new AttributePattern(EnumAtrributes.References, References, "ref");
     AttributePrimary   = new AttributePattern(EnumAtrributes.PrimaryKey, Primary, "pk");
     random             = new Random();
 }
Exemplo n.º 2
0
 public BasicGenerator(GeneratorConfiguration config, bool wrapInDoubleQuotes) : this(config)
 {
     WrapInDoubleQuotes = wrapInDoubleQuotes;
 }