public Guid?Insert_Dog_Dams(Guid user_ID) { DogDamsBL dogDams = new DogDamsBL(_connString); Guid? newID = dogDams.Insert_Dog_Dams(_dog_ID, _dam_ID, user_ID); return(newID); }
public DogDams(Guid dog_Dam_ID) { DogDamsBL dogDams = new DogDamsBL(); lnkDogDams = dogDams.GetDog_DamByDog_Dam_ID(dog_Dam_ID); Dog_Dam_ID = dog_Dam_ID; Dog_ID = lnkDogDams[0].Dog_ID; Dam_ID = lnkDogDams[0].Dam_ID; }
public bool Update_Dog_Dams(Guid original_ID, Guid user_ID) { bool success = false; DogDamsBL dogDams = new DogDamsBL(_connString); success = dogDams.Update_Dog_Dams(original_ID, _dog_ID, _dam_ID, _deleteDogDam, user_ID); return(success); }
public DogDams(string connString, Guid dog_Dam_ID) { _connString = connString; DogDamsBL dogDams = new DogDamsBL(_connString); lnkDogDams = dogDams.GetDog_DamByDog_Dam_ID(dog_Dam_ID); DataRow row = lnkDogDams.Rows[0]; _dog_Dam_ID = dog_Dam_ID; _dog_ID = Utils.DBNullToGuid(row["Dog_ID"]); _dam_ID = Utils.DBNullToGuid(row["Dam_ID"]); }
public List<DogDams> GetDogDamsByDam_ID(Guid dam_ID) { List<DogDams> dogDamList = new List<DogDams>(); DogDamsBL dogDams = new DogDamsBL(); lnkDogDams = dogDams.GetDog_DamsByDam_ID(dam_ID); if (lnkDogDams != null && lnkDogDams.Count > 0) { foreach (sss.lnkDog_DamsRow row in lnkDogDams) { DogDams dogDam = new DogDams(row.Dog_Dam_ID); dogDamList.Add(dogDam); } } return dogDamList; }
public List <DogDams> GetDogDamsByDam_ID(Guid dam_ID) { List <DogDams> dogDamList = new List <DogDams>(); DogDamsBL dogDams = new DogDamsBL(_connString); lnkDogDams = dogDams.GetDog_DamsByDam_ID(dam_ID); if (lnkDogDams != null && lnkDogDams.Rows.Count > 0) { foreach (DataRow row in lnkDogDams.Rows) { DogDams dogDam = new DogDams(_connString, Utils.DBNullToGuid(row["Dog_Dam_ID"])); dogDamList.Add(dogDam); } } return(dogDamList); }
public bool Update_Dog_Dams(Guid original_ID, Guid user_ID) { bool success = false; DogDamsBL dogDams = new DogDamsBL(); success = dogDams.Update_Dog_Dams(original_ID, Dog_ID, Dam_ID, DeleteDogDam, user_ID); return success; }
public Guid? Insert_Dog_Dams(Guid user_ID) { DogDamsBL dogDams = new DogDamsBL(); Guid? newID = dogDams.Insert_Dog_Dams(Dog_ID, Dam_ID, user_ID); return newID; }