Beispiel #1
0
 partial void Updatetbl_Resource(tbl_Resource instance);
Beispiel #2
0
 partial void Deletetbl_Resource(tbl_Resource instance);
Beispiel #3
0
		private void detach_tbl_Resources(tbl_Resource entity)
		{
			this.SendPropertyChanging();
			entity.tbl_Project = null;
		}
Beispiel #4
0
 partial void Inserttbl_Resource(tbl_Resource instance);
Beispiel #5
0
 public void Delete(tbl_Resource resource)
 {
     db.tbl_Resources.DeleteOnSubmit(resource);
 }
Beispiel #6
0
		private void attach_tbl_Resources(tbl_Resource entity)
		{
			this.SendPropertyChanging();
			entity.tbl_User = this;
		}
Beispiel #7
0
        public ActionResult InsertProjectResource(int Project_ID, string User_CAI)
        {
            try
            {
                if (resourcedb.FindResource(Project_ID, User_CAI).Count() > 0)
                {
                    return Json(new { Status = false, Message = "Fail" });
                }
                else
                {
                    tbl_Resource resource = new tbl_Resource();
                    resource.User_CAI = User_CAI;
                    resource.Project_ID = Project_ID;
                    resource.active = true;
                    resourcedb.Add(resource);
                    resourcedb.Save();
                    return Json(new { Status = true, Message = "Success" });
                }

            }
            catch(Exception ex)
            {
                return Json(new { Status = false, Message = "Fail: " + ex.Message });
            }
        }
Beispiel #8
0
 public void Add(tbl_Resource resource)
 {
     db.tbl_Resources.InsertOnSubmit(resource);
 }
Beispiel #9
0
 public void Add(tbl_Resource resource)
 {
     db.tbl_Resources.InsertOnSubmit(resource);
 }
Beispiel #10
0
 public void Delete(tbl_Resource resource)
 {
     db.tbl_Resources.DeleteOnSubmit(resource);
 }
Beispiel #11
0
 partial void Deletetbl_Resource(tbl_Resource instance);
Beispiel #12
0
 partial void Updatetbl_Resource(tbl_Resource instance);
Beispiel #13
0
 partial void Inserttbl_Resource(tbl_Resource instance);
Beispiel #14
0
 private void detach_tbl_Resources(tbl_Resource entity)
 {
     this.SendPropertyChanging();
     entity.tbl_Project = null;
 }
Beispiel #15
0
 private void attach_tbl_Resources(tbl_Resource entity)
 {
     this.SendPropertyChanging();
     entity.tbl_User = this;
 }