示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the GroupLocals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGroupLocals(GroupLocal groupLocal)
 {
     base.AddObject("GroupLocals", groupLocal);
 }
示例#2
0
 public void Save(GroupLocal group)
 {
     _entitiesSource.GroupLocals.Attach(group);
     _entitiesSource.ObjectStateManager.ChangeObjectState(group, EntityState.Modified);
     _entitiesSource.SaveChanges();
 }
示例#3
0
 /// <summary>
 /// Create a new GroupLocal object.
 /// </summary>
 /// <param name="groupId">Initial value of the GroupId property.</param>
 /// <param name="langId">Initial value of the LangId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="body">Initial value of the Body property.</param>
 public static GroupLocal CreateGroupLocal(global::System.Int32 groupId, global::System.Int32 langId, global::System.String name, global::System.String body)
 {
     GroupLocal groupLocal = new GroupLocal();
     groupLocal.GroupId = groupId;
     groupLocal.LangId = langId;
     groupLocal.Name = name;
     groupLocal.Body = body;
     return groupLocal;
 }