/// <summary> /// Create a new DMAP object. /// </summary> /// <param name="mAP_ID">Initial value of the MAP_ID property.</param> public static DMAP CreateDMAP(global::System.String mAP_ID) { DMAP dMAP = new DMAP(); dMAP.MAP_ID = mAP_ID; return dMAP; }
public static void save_map(MapMatrix MapMatrix) { DMAP map = new DMAP(); map.MAP_ID = MapMatrix.MapID; map.MAPNAME = MapMatrix.Mapname; map.ROWS = MapMatrix.Y; map.COLUMNS = MapMatrix.X; map.SAVEGAME = MapMatrix.Savegame; Context.AddToDMAP(map); Console.WriteLine(Context.SaveChanges()); }
/// <summary> /// Deprecated Method for adding a new object to the DMAP EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDMAP(DMAP dMAP) { base.AddObject("DMAP", dMAP); }