public SystemConfigGroupEntity FindByCode(string groupCode) { NHibernateDynamicQueryGenerator <SystemConfigGroupEntity> dynamicQueryGenerator = this.GetNewQueryBuilder(); dynamicQueryGenerator.AddWhereClause(PROPERTY_CODE.Eq(groupCode)); dynamicQueryGenerator.AddOrderBy(PROPERTY_ID.Desc()); return(this.FindSingleEntityByQueryBuilder(dynamicQueryGenerator)); }
public List <SPChannelParamsEntity> GetAllShowParams(SPChannelEntity channle) { NHibernateDynamicQueryGenerator <SPChannelParamsEntity> queryGenerator = this.GetNewQueryBuilder(); queryGenerator.AddWhereClause(PROPERTY_CHANNELID.Eq(channle)); queryGenerator.AddWhereClause(PROPERTY_ISENABLE.Eq(true)); queryGenerator.AddOrderBy(PROPERTY_ID.Desc()); return(this.FindListByQueryBuilder(queryGenerator)); }
public List <SPChannelDefaultClientSycnParamsEntity> GetAllEnableDefaultSendParams(SPChannelEntity spChannelEntity) { NHibernateDynamicQueryGenerator <SPChannelDefaultClientSycnParamsEntity> queryGenerator = this.GetNewQueryBuilder(); queryGenerator.AddWhereClause(PROPERTY_CHANNELID.Eq(spChannelEntity)); queryGenerator.AddWhereClause(PROPERTY_ISENABLE.Eq(true)); queryGenerator.AddOrderBy(PROPERTY_ID.Desc()); return(this.FindListByQueryBuilder(queryGenerator)); }
public List <SPSendClientParamsEntity> GetAllEnableParams(SPClientEntity spClientEntity) { NHibernateDynamicQueryGenerator <SPSendClientParamsEntity> queryGenerator = this.GetNewQueryBuilder(); queryGenerator.AddWhereClause(PROPERTY_CLIENTID.Eq(spClientEntity)); queryGenerator.AddWhereClause(PROPERTY_ISENABLE.Eq(true)); queryGenerator.AddOrderBy(PROPERTY_ID.Desc()); return(this.FindListByQueryBuilder(queryGenerator)); }