示例#1
0
 static void Main(string[] args)
 {
     try
     {
         using (var db = new QBOEntities())
         {
             db.ACCOUNTS.Add(new ACCOUNT{ ID = "1", NAME = "Payable" });
             db.SaveChanges();
         }
     }
     catch //(Exception ex)
     {
         throw;
     }
 }
示例#2
0
 static void Main(string[] args)
 {
     try
     {
         using (var db = new QBOEntities())
         {
             db.ACCOUNTS.Add(new ACCOUNT {
                 ID = "1", NAME = "Payable"
             });
             db.SaveChanges();
         }
     }
     catch //(Exception ex)
     {
         throw;
     }
 }