コード例 #1
0
		private void detach_CUsers(CUser entity)
		{
			this.SendPropertyChanging();
			entity.Company = null;
		}
コード例 #2
0
		private void attach_CUsers(CUser entity)
		{
			this.SendPropertyChanging();
			entity.Company = this;
		}
コード例 #3
0
 partial void DeleteCUser(CUser instance);
コード例 #4
0
 partial void UpdateCUser(CUser instance);
コード例 #5
0
 partial void InsertCUser(CUser instance);
コード例 #6
0
ファイル: GoDine.cs プロジェクト: laurenierullo/AroundTown
 public void CreateCUserToCompany_By_Guid(string cusername, Guid userID, int forced)
 {
     int companyIDfound = (from c in db.Companies where c.UserID == userID select c.CompanyID).Single();
     CUser cuser = new CUser
     {
         CompanyID = companyIDfound,
         Date = DateTime.Now,
         Forced = forced,
         TotalIn = 0,
         TotalInDiscounted = 0,
         UserCode = cusername
     };
     db.CUsers.InsertOnSubmit(cuser);
     db.SubmitChanges();
 }