Пример #1
0
        /// <summary>
        /// Create a new Accepter object.
        /// </summary>
        /// <param name="accepterId">Initial value of the AccepterId property.</param>
        public static Accepter CreateAccepter(global::System.Int32 accepterId)
        {
            Accepter accepter = new Accepter();

            accepter.AccepterId = accepterId;
            return(accepter);
        }
Пример #2
0
        public void removeRequest(int id)
        {
            finalDataBaseEntities2 f = new finalDataBaseEntities2();
            Accepter d = f.Accepters.First(x => x.AccepterId == id);

            f.DeleteObject(d);
            f.SaveChanges();
        }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Accepters EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAccepters(Accepter accepter)
 {
     base.AddObject("Accepters", accepter);
 }