示例#1
0
        private IList GetCountryModel(long countryID, WorkingModelType workingModelType)
        {
            string where = GetWhere(workingModelType);
            IList list = FindByNamedParam(null, where, null, "countryID", countryID);

            if ((list != null) && (list.Count == 0))
            {
                return(null);
            }
            return(list);
        }
示例#2
0
 private string GetWhere(WorkingModelType workingModelType)
 {
     return(string.Format("entity.CountryID = :countryID and entity.WorkingModelType = {0}", (byte)workingModelType));
 }