示例#1
0
 /// <summary>
 /// Create a new LicenseKey object.
 /// </summary>
 /// <param name="licenseKeyId">Initial value of the LicenseKeyId property.</param>
 /// <param name="licenseSetId">Initial value of the LicenseSetId property.</param>
 /// <param name="key">Initial value of the Key property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="activationCount">Initial value of the ActivationCount property.</param>
 /// <param name="deactivated">Initial value of the Deactivated property.</param>
 public static LicenseKey CreateLicenseKey(global::System.Int32 licenseKeyId, global::System.Int32 licenseSetId, global::System.String key, global::System.DateTime createdOn, global::System.Int32 activationCount, global::System.Boolean deactivated)
 {
     LicenseKey licenseKey = new LicenseKey();
     licenseKey.LicenseKeyId = licenseKeyId;
     licenseKey.LicenseSetId = licenseSetId;
     licenseKey.Key = key;
     licenseKey.CreatedOn = createdOn;
     licenseKey.ActivationCount = activationCount;
     licenseKey.Deactivated = deactivated;
     return licenseKey;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the LicenseKeys EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLicenseKeys(LicenseKey licenseKey)
 {
     base.AddObject("LicenseKeys", licenseKey);
 }