Ejemplo n.º 1
0
 static AS400PropertyBuilderAnnotations GetAS400InternalBuilder(PropertyBuilder propertyBuilder)
 => propertyBuilder.GetInfrastructure <InternalPropertyBuilder>().AS400(ConfigurationSource.Explicit);
Ejemplo n.º 2
0
 public static PropertyBuilder <TProperty> ForAS400UseSequenceHiLo <TProperty>(
     [NotNull] this PropertyBuilder <TProperty> propertyBuilder,
     [CanBeNull] string name   = null,
     [CanBeNull] string schema = null)
 => (PropertyBuilder <TProperty>)ForAS400UseSequenceHiLo((PropertyBuilder)propertyBuilder, name, schema);
Ejemplo n.º 3
0
 public static PropertyBuilder <TProperty> UseAS400IdentityColumn <TProperty>(
     [NotNull] this PropertyBuilder <TProperty> propertyBuilder)
 => (PropertyBuilder <TProperty>)UseAS400IdentityColumn((PropertyBuilder)propertyBuilder);
Ejemplo n.º 4
0
 public static PropertyBuilder <string> IsRequiredAndMaxLength(this PropertyBuilder <string> builder, EntityConst entConst)
 {
     builder.IsRequired(entConst.IsRequired);
     builder.HasMaxLength(entConst.MaxLength);
     return(builder);
 }