コード例 #1
0
 /// <summary>
 /// Create a new AssetType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static AssetType CreateAssetType(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String name)
 {
     AssetType assetType = new AssetType();
     assetType.Id = id;
     assetType.RowVersion = rowVersion;
     assetType.Name = name;
     return assetType;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AssetTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAssetTypes(AssetType assetType)
 {
     base.AddObject("AssetTypes", assetType);
 }