コード例 #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 }));
 }