private bool FilterHardDrives(HardDrive entity) { return (entity.PowerTypeId == this.Id); }
private bool FilterHardDrive(HardDrive entity) { return (entity.Id == this.HardDriveId); }
private void AttachHardDrives(HardDrive entity) { entity.PowerType = this; }
private void DetachHardDrives(HardDrive entity) { entity.PowerType = null; }
private bool FilterHardDrives(HardDrive entity) { return (entity.DeviceId == this.Id); }
private void DetachHardDrives(HardDrive entity) { entity.Device = null; }
private void AttachHardDrives(HardDrive entity) { entity.Device = this; }
/// <summary> /// Deprecated Method for adding a new object to the HardDrives EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHardDrives(HardDrive hardDrive) { base.AddObject("HardDrives", hardDrive); }
/// <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; }