Esempio n. 1
0
        public List <ENT.UserAndPlantMappingSUB> GetList(string search)
        {
            try
            {
                parFields.Clear();

                QueryDisctionery.SelectPart = @"SELECT  Distinct  UserAndPlantMapping.AspNetUserID, AspNetUsers.UserName AS DisplayName ";
                QueryDisctionery.TablePart  = @"FROM            UserAndPlantMapping LEFT OUTER JOIN
                                                AspNetUsers ON UserAndPlantMapping.AspNetUserID = AspNetUsers.Id";
                QueryDisctionery.OrderPart  = " order by AspNetUsers.UserName desc";
                if (!string.IsNullOrWhiteSpace(search))
                {
                    QueryDisctionery.ParameterPart = "where M.DisplayName like '%" + search + "%'";
                }
                using (SqlDataReader dr = objDBHelper.ExecuteReaderQuery(QueryDisctionery, parFields, objEntity))
                {
                    lstEntity = COM.DBHelper.CopyDataReaderToEntity <ENT.UserAndPlantMappingSUB>(dr);
                    objDBHelper.Disposed();
                }
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                parFields.Clear();
            }
            return(lstEntity);
        }
Esempio n. 2
0
 public MainDeviceMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 3
0
 public OTPCodeMaster()
 {
     parFields.Clear();
 }
Esempio n. 4
0
 public SubDeviceMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 5
0
 public CityMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 6
0
 public AdminMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 7
0
 public CountryMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 8
0
 public StateMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 9
0
 public PlantMasterDAL()
 {
     parFields.Clear();
 }
Esempio n. 10
0
 public PlantDeviceLastStatus()
 {
     parFields.Clear();
 }
Esempio n. 11
0
 public MessageSendLog()
 {
     parFields.Clear();
 }