/// <summary> /// 创建新的 BasicData 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="key">Key 属性的初始值。</param> /// <param name="value">Value 属性的初始值。</param> public static BasicData CreateBasicData(global::System.Int32 id, global::System.String key, global::System.String value) { BasicData basicData = new BasicData(); basicData.ID = id; basicData.Key = key; basicData.Value = value; return basicData; }
/// <summary> /// 用于向 BasicData EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToBasicData(BasicData basicData) { base.AddObject("BasicData", basicData); }