Exemple #1
0
 private bool FilterHardDrives(HardDrive entity)
 {
     return (entity.PowerTypeId == this.Id);
 }
Exemple #2
0
 private bool FilterHardDrive(HardDrive entity)
 {
     return (entity.Id == this.HardDriveId);
 }
Exemple #3
0
 private void AttachHardDrives(HardDrive entity)
 {
     entity.PowerType = this;
 }
Exemple #4
0
 private void DetachHardDrives(HardDrive entity)
 {
     entity.PowerType = null;
 }
Exemple #5
0
 private bool FilterHardDrives(HardDrive entity)
 {
     return (entity.DeviceId == this.Id);
 }
Exemple #6
0
 private void DetachHardDrives(HardDrive entity)
 {
     entity.Device = null;
 }
Exemple #7
0
 private void AttachHardDrives(HardDrive entity)
 {
     entity.Device = this;
 }
Exemple #8
0
 /// <summary>
 /// Deprecated Method for adding a new object to the HardDrives EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHardDrives(HardDrive hardDrive)
 {
     base.AddObject("HardDrives", hardDrive);
 }
Exemple #9
0
 /// <summary>
 /// Create a new HardDrive object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="size">Initial value of the Size property.</param>
 /// <param name="rotation">Initial value of the Rotation property.</param>
 /// <param name="powerTypeId">Initial value of the PowerTypeId property.</param>
 /// <param name="cache">Initial value of the Cache property.</param>
 /// <param name="deviceId">Initial value of the DeviceId property.</param>
 public static HardDrive CreateHardDrive(global::System.Int32 id, global::System.Int16 size, global::System.Int16 rotation, global::System.Int32 powerTypeId, global::System.Int16 cache, global::System.Int32 deviceId)
 {
     HardDrive hardDrive = new HardDrive();
     hardDrive.Id = id;
     hardDrive.Size = size;
     hardDrive.Rotation = rotation;
     hardDrive.PowerTypeId = powerTypeId;
     hardDrive.Cache = cache;
     hardDrive.DeviceId = deviceId;
     return hardDrive;
 }