protected override void ConfigureProperty(BasePropertyBuilder <BlogPost> builder) { builder.Property(a => a.Title).HasMaxLength(150).IsRequired(); builder.Property(a => a.Description).HasMaxLength(250); builder.Property(a => a.Content).HasMaxLength(250).IsRequired(); builder.Property(a => a.PublishedOn).IsRequired(); }
protected override void ConfigureProperty(BasePropertyBuilder <BillProvider> builder) { builder.Property(p => p.ShortDesc) .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .HasMaxLength(StringLengthConstant.LongDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <EmailExtract> builder) { builder.Property(a => a.Key) .IsRequired() .HasMaxLength(100); builder.Property(a => a.Value) .HasMaxLength(255); }
protected override void ConfigureProperty(BasePropertyBuilder <Person> builder) { builder.Property(a => a.TaxIdNumber).HasMaxLength(11); builder.Property(a => a.FirstName).IsRequired().HasMaxLength(50); builder.Property(a => a.MiddleName).HasMaxLength(50); builder.Property(a => a.LastName).IsRequired().HasMaxLength(50); builder.Property(a => a.Gender) .HasConversion <string>() .HasMaxLength(StringLengthConstant.Enums); }
protected override void ConfigureProperty(BasePropertyBuilder <EmailAttachment> builder) { builder.Property(a => a.ContentType) .HasMaxLength(100) .IsRequired(); builder.Property(a => a.FileName) .HasMaxLength(255) .IsRequired(); }
protected override void ConfigureProperty(BasePropertyBuilder <UserLogin> builder) { builder.Property(a => a.Username) .IsRequired() .HasMaxLength(StringLengthConstant.Name); builder.Property(a => a.TemporaryPassword) .IsRequired() .HasMaxLength(StringLengthConstant.Password); }
protected override void ConfigureProperty(BasePropertyBuilder <User> builder) { builder.Property(a => a.FirstName) .IsRequired() .HasMaxLength(StringLengthConstant.Name); builder.Property(a => a.LastName) .IsRequired() .HasMaxLength(StringLengthConstant.Name); }
protected override void ConfigureProperty(BasePropertyBuilder <ProviderTypeConfigEmail> builder) { builder.Property(a => a.ClientEmailAddress) .IsRequired() .HasMaxLength(StringLengthConstant.Email); builder.Property(a => a.ReceiverEmailAddress) .IsRequired() .HasMaxLength(StringLengthConstant.Email); }
protected override void ConfigureProperty(BasePropertyBuilder <EmailWorker> builder) { builder.Property(p => p.AssemblyName) .IsRequired() .HasMaxLength(StringLengthConstant.AssemblyName); builder.Property(p => p.TypeName) .IsRequired() .HasMaxLength(StringLengthConstant.TypeName); }
protected override void ConfigureProperty(BasePropertyBuilder <TrackBillSetting> builder) { builder.Property(a => a.Code) .IsRequired() .HasMaxLength(StringLengthConstant.Code); builder.Property(a => a.Value) .IsRequired() .HasMaxLength(500); }
protected override void ConfigureProperty(BasePropertyBuilder <ValidationFailure> builder) { builder.Property(a => a.PropertyName) .IsRequired() .HasMaxLength(200); builder.Property(a => a.ErrorMessage) .IsRequired() .HasMaxLength(400); }
protected override void ConfigureProperty(BasePropertyBuilder <EmployeeLoanRef> builder) { builder.Property(p => p.OvrdShortDesc) .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.OvrdLongDesc) .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.OvrdAltDesc) .HasMaxLength(StringLengthConstant.AltDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <EmailPart> builder) { builder.Property(a => a.Name) .HasMaxLength(100) .IsRequired(); builder.Property(a => a.PartType) .HasConversion <string>() .IsRequired() .HasMaxLength(StringLengthConstant.Enums); }
protected override void ConfigureProperty(BasePropertyBuilder <User> builder) { builder.Property(a => a.FirstName).HasMaxLength(150).IsRequired(); builder.Property(a => a.LastName).HasMaxLength(150).IsRequired(); builder.Property(a => a.Gender) .HasConversion <string>() .HasMaxLength(30); builder.Property(a => a.FullName) .HasComputedColumnSql("CONCAT(LastName, ', ', FirstName, ISNULL(' ' + SUBSTRING(MiddleName,1,1) + '.', ''))"); }
protected override void ConfigureProperty(BasePropertyBuilder <ProviderType> builder) { builder.Property(a => a.ID).ValueGeneratedNever(); builder.Property(p => p.ShortDesc) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .IsRequired() .HasMaxLength(StringLengthConstant.LongDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <ProcessInstanceError> builder) { builder.Property(a => a.ErrorType) .IsRequired() .HasMaxLength(200); builder.Property(a => a.Message) .IsRequired(); builder.Property(a => a.StackTrace) .IsRequired(); }
protected override void ConfigureProperty(BasePropertyBuilder <ProviderTypeConfigScheduler> builder) { builder.Property(p => p.ShortDesc) .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(a => a.Frequency) .HasConversion <string>() .HasMaxLength(StringLengthConstant.Enums); }
protected override void ConfigureProperty(BasePropertyBuilder <PaymentMode> builder) { builder.Property(a => a.ShortDesc) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(a => a.LongDesc) .IsRequired() .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(a => a.AltDesc) .HasMaxLength(StringLengthConstant.AltDesc); }
public override void ConfigureProperty(BasePropertyBuilder <Skill> builder) { builder.Property(a => a.Name) .HasMaxLength(ConfigConstants.NameMaxLength) .IsRequired(); builder.Property(a => a.Description) .HasMaxLength(ConfigConstants.DescriptionMaxLength); builder.Property(a => a.SkillType) .HasConversion <string>() .HasMaxLength(ConfigConstants.EnumMaxLength); }
protected override void ConfigureProperty(BasePropertyBuilder <DeductionType> builder) { builder.Property(p => p.ShortDesc) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .IsRequired() .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.AltDesc) .HasMaxLength(StringLengthConstant.AltDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <JobParameter> builder) { builder.Property(a => a.Name) .IsRequired() .HasMaxLength(StringLengthConstant.CommonName); builder.Property(a => a.Display) .IsRequired() .HasMaxLength(250); builder.Property(a => a.DataType) .IsRequired() .HasMaxLength(20); }
protected override void ConfigureProperty(BasePropertyBuilder <EmployeeDeductionRef> builder) { builder.Property(a => a.EmployeeDeductionRefID) .ValueGeneratedOnAdd(); builder.Property(p => p.OvrdShortDesc) .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.OvrdLongDesc) .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.OvrdAltDesc) .HasMaxLength(StringLengthConstant.AltDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <TrackBill> builder) { builder.Property(a => a.ID).ValueGeneratedOnAdd(); builder.Property(p => p.ShortDesc) .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.AccountNumber) .IsRequired() .HasMaxLength(100); }
protected override void ConfigureProperty(BasePropertyBuilder <UserSession> builder) { builder.Property(a => a.Token) .IsRequired() .HasMaxLength(StringLengthConstant.Token); builder.Property(a => a.IsExpired); builder.Property(a => a.Remarks) .HasMaxLength(StringLengthConstant.Remarks); builder.Property(a => a.Status) .HasConversion <string>() .HasMaxLength(StringLengthConstant.Enums); }
protected override void ConfigureProperty(BasePropertyBuilder <UserBill> builder) { builder.Property(a => a.Status) .HasConversion <string>() .IsRequired() .HasMaxLength(StringLengthConstant.Enums); }
protected override void ConfigureProperty(BasePropertyBuilder <BillPaymentStepsTemplate> builder) { builder.Property(a => a.Title) .IsRequired() .HasMaxLength(255); builder.Property(a => a.ShortDesc) .IsRequired() .HasMaxLength(500); builder.Property(a => a.LongDesc) .IsRequired(); builder.Property(a => a.Keywords) .HasMaxLength(255); }
protected override void ConfigureProperty(BasePropertyBuilder <TableRange> builder) { builder.Property(p => p.Code) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(a => a.AmountBasis) .HasConversion <string>() .IsRequired() .HasMaxLength(StringLengthConstant.Enums); builder.Property(a => a.EmployeeFormula) .HasMaxLength(255); builder.Property(a => a.EmployerFormula) .HasMaxLength(255); }
protected override void ConfigureProperty(BasePropertyBuilder <Loan> builder) { builder.Property(a => a.LoanID).ValueGeneratedOnAdd(); builder.Property(p => p.Code) .IsRequired() .HasMaxLength(StringLengthConstant.Code); builder.Property(p => p.ShortDesc) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .IsRequired() .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.AltDesc) .HasMaxLength(StringLengthConstant.AltDesc); }
protected override void ConfigureProperty(BasePropertyBuilder <TaskHandlerProvider> builder) { builder.Property(a => a.ID) .ValueGeneratedNever(); builder.Property(p => p.TaskAssembly) .IsRequired() .HasMaxLength(StringLengthConstant.Assembly); builder.Property(p => p.TaskClass) .IsRequired() .HasMaxLength(StringLengthConstant.ClassName); builder.Property(p => p.HandlerAssembly) .HasMaxLength(StringLengthConstant.Assembly); builder.Property(p => p.HandlerClass) .HasMaxLength(StringLengthConstant.ClassName); }
protected override void ConfigureProperty(BasePropertyBuilder<MasterEmployeeDeduction> builder) { builder.Property(a => a.MasterEmployeeDeductionID) .ValueGeneratedOnAdd(); builder.Property(p => p.ShortDesc) .IsRequired() .HasMaxLength(StringLengthConstant.ShortDesc); builder.Property(p => p.LongDesc) .IsRequired() .HasMaxLength(StringLengthConstant.LongDesc); builder.Property(p => p.AltDesc) .HasMaxLength(StringLengthConstant.AltDesc); builder.Property(a => a.RecordStatus) .HasConversion<string>() .HasMaxLength(StringLengthConstant.Enums); }