public int GetCount(QueryBySingleRequest request, ReposityEntity re)
 {
     string sql = Common.GetSqlPlusSort(request, re.Items[ReposityEntity.FalgQueryCountEntity]);
     IList<SqlParams> sqlparams = Common.GetSqlParams(request);
     object obj = SQLHelper.ExecuteScalar(re.OwnerService, sql, sqlparams);
     return  int.Parse(obj.ToString());
 }
 public int GetCount(QueryBySingleRequest request) 
 {
     if (string.IsNullOrWhiteSpace(request.Guid)
         ||
         !ReposityEntityFactory.Items.ContainsKey(request.Guid)
         )
         throw new Exception("Error: requestGuid is null or is not exists! ");
     return this.GetCount(request, ReposityEntityFactory.Items[request.Guid]);
 }     
 public int GetCount(QueryBySingleRequest request)
 {
     return crh.GetCount(request);
 }
 public QueryBySingleResponse<CustomerRegister> Get(QueryBySingleRequest request)
 {
     return crh.Get(request);
 }
 public ExamQuestion GetRow(string ExamPaper)
 {
     QueryBySingleRequest request = new QueryBySingleRequest()
     {
         Params = new List<RequestParameter>() { new RequestParameter() { Name = "@ExamPaper", Value = ExamPaper, Type = "string", } },
     };
     QueryBySingleResponse<ExamQuestion> response = new QueryBySingle<ExamQuestion>().Get(request, ReposityEntityFactory.Items[Flag]);
     return response.Row;
 }
 public int GetCount(QueryBySingleRequest request)
 {
     return new QueryByCount().GetCount(request, ReposityEntityFactory.Items[Flag]);
 }
 public QueryBySingleResponse<CustomerRegister> Get(QueryBySingleRequest request)
 {
     return new QueryBySingle<CustomerRegister>().Get(request, ReposityEntityFactory.Items[Flag]);
 }
 public Cross GetRow()
 {
     QueryBySingleRequest request = new QueryBySingleRequest() { };
     QueryBySingleResponse<Cross> response = new QueryBySingle<Cross>().Get(request, ReposityEntityFactory.Items[Flag]);
     return response.Row;
 }