Beispiel #1
0
        public static void Create(MutualBE pMutualBE)
        {
            using (Health.Back.BE.HealthEntities dc = new Health.Back.BE.HealthEntities(Common.CnnString_Entities))
            {
                Mutual wMutual = new Mutual();
                wMutual.Nombre = pMutualBE.Nombre;
                wMutual.ExigeCoseguro = pMutualBE.ExigeCoseguro;

                dc.Mutuals.AddObject(wMutual);
                dc.SaveChanges();
                wMutual.IdMutual = wMutual.IdMutual;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Mutuals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMutuals(Mutual mutual)
 {
     base.AddObject("Mutuals", mutual);
 }
Beispiel #3
0
 /// <summary>
 /// Create a new Mutual object.
 /// </summary>
 /// <param name="idMutual">Initial value of the IdMutual property.</param>
 /// <param name="nombre">Initial value of the Nombre property.</param>
 public static Mutual CreateMutual(global::System.Int32 idMutual, global::System.String nombre)
 {
     Mutual mutual = new Mutual();
     mutual.IdMutual = idMutual;
     mutual.Nombre = nombre;
     return mutual;
 }