public bool AddFloor(string portName, string floorName) { _logger.Info("service: add floor to port {0} with name {1}", portName, floorName); Floors floor = new Floors(); floor.ComPort = portName; floor.FloorName = floorName; AlfaEntities alfaEntities = new AlfaEntities(); alfaEntities.SaveChanges(); return true; }
/// <summary> /// Create a new Floors object. /// </summary> /// <param name="floorId">Initial value of the FloorId property.</param> public static Floors CreateFloors(global::System.Int32 floorId) { Floors floors = new Floors(); floors.FloorId = floorId; return floors; }
/// <summary> /// Deprecated Method for adding a new object to the Floors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFloors(Floors floors) { base.AddObject("Floors", floors); }