예제 #1
0
        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;
        }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Floors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFloors(Floors floors)
 {
     base.AddObject("Floors", floors);
 }