Beispiel #1
0
        internal Vehicle(DataModel.Vehicles entity)
            : base(entity)
        {
            Debug.Assert(0 < entity.CreationTime); // NOTE: must be inited

            _SpecialtiesWrap.DataObjects.CollectionChanged += new NotifyCollectionChangedEventHandler(_Specialties_CollectionChanged);
            if (null != _MobileDeviceWrap.Value)
            {
                _MobileDeviceWrap.Value.PropertyChanged += new PropertyChangedEventHandler(_MobileDevice_PropertyChanged);
            }
        }
Beispiel #2
0
 private void _InitCapacities(DataModel.Vehicles entity, CapacitiesInfo capacitiesInfo)
 {
     _capacities = Capacities.CreateFromDBString(entity.Capacities, capacitiesInfo);
     _capacities.PropertyChanged += new PropertyChangedEventHandler(Capacities_PropertyChanged);
 }
 /// <summary>
 /// Create a new Vehicles object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Vehicles CreateVehicles(global::System.Guid id)
 {
     Vehicles vehicles = new Vehicles();
     vehicles.Id = id;
     return vehicles;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Vehicles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVehicles(Vehicles vehicles)
 {
     base.AddObject("Vehicles", vehicles);
 }