Beispiel #1
0
 protected override void ConfigureIndex(BaseIndexBuilder <Loan> builder)
 {
     builder.HasIndex(a => new
     {
         a.Code,
         a.ClientID,
         a.IsEnabled
     });
 }
 protected override void ConfigureIndex(BaseIndexBuilder <Employee> builder)
 {
     builder.HasIndex(a => new
     {
         a.ClientID,
         a.EmployeeSysID,
         a.EmployeeID
     })
     .IsUnique(true);
 }
 protected override void ConfigureIndex(BaseIndexBuilder <FirebaseToken> builder)
 {
     builder.HasIndex(a => a.Token)
     .IsUnique();
 }
 protected override void ConfigureIndex(BaseIndexBuilder <UserLogin> builder)
 {
     builder.HasIndex(a => a.Username).IsUnique();
 }
Beispiel #5
0
 protected override void ConfigureIndex(BaseIndexBuilder <TextTemplate> builder)
 {
     builder.HasIndex(a => new { a.Code, a.RecordStatus })
     .IsUnique()
     .HasFilter($"[{nameof(RecordStatus)}] = '{RecordStatus.Active}'");
 }
Beispiel #6
0
 protected override void ConfigureIndex(BaseIndexBuilder <Bill> builder)
 {
     builder.HasIndex(a => a.Code).IsUnique();
 }