protected void ApplyDeactivatedRecordsConditions(Select select, EntitySchema schema)
 {
     if (schema.UseRecordDeactivation)
     {
         string inactiveColumnName = schema.GetInactiveColumn().Name;
         select.AddCondition(inactiveColumnName, LogicalOperation.And)
         .IsEqual(Column.Const(false));
     }
 }