예제 #1
0
 public void Delete(AccountFolderShare accountFolder)
 {
     using (SPKTDataContext spktDC = conn.GetContext())
     {
         spktDC.AccountFolderShares.DeleteOnSubmit(accountFolder);
         spktDC.SubmitChanges();
     }
 }
예제 #2
0
파일: Share.cs 프로젝트: SPKT/MHX2
 public void Shared1(Account ac, Account acby, Folder file)
 {
     AccountFolderShare asf = new AccountFolderShare();
     asf.AccountByID = acby.AccountID;
     asf.AccountID = ac.AccountID;
     asf.FolderID = file.FolderID;
     _ac.Save(asf);
 }
예제 #3
0
        public void Save(AccountFolderShare accountFolder)
        {
            using (SPKTDataContext spktDC = conn.GetContext())
            {

                if (accountFolder.AccountFolderID > 0)
                {
                    spktDC.AccountFolderShares.Attach(accountFolder, true);

                }
                else
                {
                    spktDC.AccountFolderShares.InsertOnSubmit(accountFolder);
                }
                spktDC.SubmitChanges();
            }
        }