예제 #1
0
 public static IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <Menu> ById(this IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <Menu> builder, long id)
 {
     return(builder.Where($"Id = @id").WithParameters(new { id }));
 }
예제 #2
0
 public static IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> GetId <T>(this IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> builder, long id)
 {
     return(builder.IsDeletedFalse().Where($"Id = @id").WithParameters(new { id }));
 }
예제 #3
0
 public static IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> OrderByDesc <T>(this IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> builder)
 {
     return(builder.OrderBy($"CreatedDate DESC"));
 }
예제 #4
0
 public static IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> IsDeletedFalse <T>(this IRangedBatchSelectSqlSqlStatementOptionsOptionsBuilder <T> builder)
 {
     return(builder.Where($"IsDeleted = @isDeleted").WithParameters(new { isDeleted = false }));
 }