/// <summary> /// Create a new DGROUND object. /// </summary> /// <param name="gROUND_ID">Initial value of the GROUND_ID property.</param> public static DGROUND CreateDGROUND(global::System.String gROUND_ID) { DGROUND dGROUND = new DGROUND(); dGROUND.GROUND_ID = gROUND_ID; return dGROUND; }
public static void save_ground(Ground Ground) { DGROUND ground = new DGROUND(); ground.GROUND_ID = Ground.GroundID; ground.PARENT = Ground.Parent; ground.X = Ground.coordn.positionx; ground.Y = Ground.coordn.positiony; ground.GROUNDTYPE = Ground.groundtype; ground.DAMAGE = Ground.Damage; ground.ABSORTION = Ground.Absortion; Context.AddToDGROUND(ground); Console.WriteLine(Context.SaveChanges()); }
/// <summary> /// Deprecated Method for adding a new object to the DGROUND EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDGROUND(DGROUND dGROUND) { base.AddObject("DGROUND", dGROUND); }