Exemplo n.º 1
0
        internal Driver(DataModel.Drivers 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);
            }
        }
 /// <summary>
 /// Create a new Drivers object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Drivers CreateDrivers(global::System.Guid id)
 {
     Drivers drivers = new Drivers();
     drivers.Id = id;
     return drivers;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Drivers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDrivers(Drivers drivers)
 {
     base.AddObject("Drivers", drivers);
 }