Esempio n. 1
0
 private bool FilterPSU(PSU entity)
 {
     return (entity.Id == this.PSUId);
 }
Esempio n. 2
0
 private void DetachPSUs(PSU entity)
 {
     entity.PowerType = null;
 }
Esempio n. 3
0
 private bool FilterPSUs(PSU entity)
 {
     return (entity.PowerTypeId == this.Id);
 }
Esempio n. 4
0
 private bool FilterPSUs(PSU entity)
 {
     return (entity.FormFactorId == this.Id);
 }
Esempio n. 5
0
 private void AttachPSUs(PSU entity)
 {
     entity.PowerType = this;
 }
Esempio n. 6
0
 private void AttachPSUs(PSU entity)
 {
     entity.FormFactor = this;
 }
Esempio n. 7
0
 private void DetachPSUs(PSU entity)
 {
     entity.FormFactor = null;
 }
Esempio n. 8
0
 private bool FilterPSUs(PSU entity)
 {
     return (entity.DeviceId == this.Id);
 }
Esempio n. 9
0
 private void DetachPSUs(PSU entity)
 {
     entity.Device = null;
 }
Esempio n. 10
0
 private void AttachPSUs(PSU entity)
 {
     entity.Device = this;
 }
Esempio n. 11
0
 /// <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;
 }
Esempio n. 12
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PSUs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPSUs(PSU pSU)
 {
     base.AddObject("PSUs", pSU);
 }