コード例 #1
0
 /// <summary>
 /// 创建新的 DataDictionary 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="attributeName">AttributeName 属性的初始值。</param>
 /// <param name="value">Value 属性的初始值。</param>
 /// <param name="displayOrder">DisplayOrder 属性的初始值。</param>
 /// <param name="createdOn">CreatedOn 属性的初始值。</param>
 /// <param name="createdByEmployeeId">CreatedByEmployeeId 属性的初始值。</param>
 /// <param name="modifiedOn">ModifiedOn 属性的初始值。</param>
 /// <param name="modifiedByEmployeeId">ModifiedByEmployeeId 属性的初始值。</param>
 /// <param name="isActive">IsActive 属性的初始值。</param>
 public static DataDictionary CreateDataDictionary(global::System.Decimal id, global::System.String name, global::System.String attributeName, global::System.String value, global::System.Decimal displayOrder, global::System.DateTime createdOn, global::System.Decimal createdByEmployeeId, global::System.DateTime modifiedOn, global::System.Decimal modifiedByEmployeeId, global::System.String isActive)
 {
     DataDictionary dataDictionary = new DataDictionary();
     dataDictionary.Id = id;
     dataDictionary.Name = name;
     dataDictionary.AttributeName = attributeName;
     dataDictionary.Value = value;
     dataDictionary.DisplayOrder = displayOrder;
     dataDictionary.CreatedOn = createdOn;
     dataDictionary.CreatedByEmployeeId = createdByEmployeeId;
     dataDictionary.ModifiedOn = modifiedOn;
     dataDictionary.ModifiedByEmployeeId = modifiedByEmployeeId;
     dataDictionary.IsActive = isActive;
     return dataDictionary;
 }
コード例 #2
0
 /// <summary>
 /// 用于向 DataDictionary EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToDataDictionary(DataDictionary dataDictionary)
 {
     base.AddObject("DataDictionary", dataDictionary);
 }