Example #1
0
        public void New(service s)
        {
            using (var ctx = new accountingEntities())
            {
                SERVICE = s;

                ctx.services.AddObject(s);
                ctx.SaveChanges();
            }
        }
 /// <summary>
 /// Create a new service object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static service Createservice(global::System.Int32 id)
 {
     service service = new service();
     service.ID = id;
     return service;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the services EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToservices(service service)
 {
     base.AddObject("services", service);
 }