public DogGender(int dog_Gender_ID) { DogGenderBL dogGender = new DogGenderBL(); lkpDogGender = dogGender.GetDog_GenderByDog_Gender_ID(dog_Gender_ID); Dog_Gender_ID = dog_Gender_ID; Description = lkpDogGender[0].Dog_Gender; }
public DogGender(string connString, int dog_Gender_ID) { _connString = connString; DogGenderBL dogGender = new DogGenderBL(_connString); lkpDogGender = dogGender.GetDog_GenderByDog_Gender_ID(dog_Gender_ID); DataRow row = lkpDogGender.Rows[0]; _dog_Gender_ID = dog_Gender_ID; _description = Utils.DBNullToString(row["Dog_Gender"]); }
public int GetDog_Gender(string gender) { int retVal = 0; List <DogGender> dogGenderList = new List <DogGender>(); DogGenderBL dogGender = new DogGenderBL(_connString); lkpDogGender = dogGender.GetDog_GenderLikeDog_Gender(gender); if (lkpDogGender != null && lkpDogGender.Rows.Count > 0) { retVal = Utils.DBNullToInt(lkpDogGender.Rows[0]["Dog_Gender_ID"]); } return(retVal); }
public List<DogGender> GetDog_Gender() { List<DogGender> dogGenderList = new List<DogGender>(); DogGenderBL dogGender = new DogGenderBL(); lkpDogGender = dogGender.GetDog_Gender(); if (lkpDogGender != null && lkpDogGender.Count > 0) { foreach (sss.lkpDog_GenderRow row in lkpDogGender) { DogGender gender = new DogGender(row.Dog_Gender_ID); dogGenderList.Add(gender); } } return dogGenderList; }
public List <DogGender> GetDog_Gender() { List <DogGender> dogGenderList = new List <DogGender>(); DogGenderBL dogGender = new DogGenderBL(_connString); lkpDogGender = dogGender.GetDog_Gender(); if (lkpDogGender != null && lkpDogGender.Rows.Count > 0) { foreach (DataRow row in lkpDogGender.Rows) { DogGender gender = new DogGender(_connString, Utils.DBNullToInt(row["Dog_Gender_ID"])); dogGenderList.Add(gender); } } return(dogGenderList); }
public DogGender() { DogGenderBL dogGender = new DogGenderBL(); lkpDogGender = dogGender.GetDog_Gender(); }