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