private bool FilterPSU(PSU entity) { return (entity.Id == this.PSUId); }
private void DetachPSUs(PSU entity) { entity.PowerType = null; }
private bool FilterPSUs(PSU entity) { return (entity.PowerTypeId == this.Id); }
private bool FilterPSUs(PSU entity) { return (entity.FormFactorId == this.Id); }
private void AttachPSUs(PSU entity) { entity.PowerType = this; }
private void AttachPSUs(PSU entity) { entity.FormFactor = this; }
private void DetachPSUs(PSU entity) { entity.FormFactor = null; }
private bool FilterPSUs(PSU entity) { return (entity.DeviceId == this.Id); }
private void DetachPSUs(PSU entity) { entity.Device = null; }
private void AttachPSUs(PSU entity) { entity.Device = this; }
/// <summary> /// Create a new PSU object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="sATA">Initial value of the SATA property.</param> /// <param name="iDE">Initial value of the IDE property.</param> /// <param name="powerTypeId">Initial value of the PowerTypeId property.</param> /// <param name="formFactorId">Initial value of the FormFactorId property.</param> /// <param name="deviceId">Initial value of the DeviceId property.</param> public static PSU CreatePSU(global::System.Int32 id, global::System.Int16 sATA, global::System.Int16 iDE, global::System.Int32 powerTypeId, global::System.Int32 formFactorId, global::System.Int32 deviceId) { PSU pSU = new PSU(); pSU.Id = id; pSU.SATA = sATA; pSU.IDE = iDE; pSU.PowerTypeId = powerTypeId; pSU.FormFactorId = formFactorId; pSU.DeviceId = deviceId; return pSU; }
/// <summary> /// Deprecated Method for adding a new object to the PSUs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPSUs(PSU pSU) { base.AddObject("PSUs", pSU); }