コード例 #1
0
ファイル: DataPortalT.cs プロジェクト: gnilesh4/csla
 /// <summary>
 /// Inserts, updates or deletes an existing
 /// child business object.
 /// </summary>
 /// <param name="child">
 /// Business object to update.
 /// </param>
 /// <param name="parameters">
 /// Parameters passed to child update method.
 /// </param>
 public async Task UpdateChildAsync(T child, params object[] parameters)
 {
     var portal = new Server.ChildDataPortal(ApplicationContext);
     await portal.UpdateAsync(child, parameters).ConfigureAwait(false);
 }
コード例 #2
0
 /// <summary>
 /// Inserts, updates or deletes an existing
 /// child business object.
 /// </summary>
 /// <param name="child">
 /// Business object to update.
 /// </param>
 /// <param name="parameters">
 /// Parameters passed to child update method.
 /// </param>
 public static async Task UpdateChildAsync(object child, params object[] parameters)
 {
     Server.ChildDataPortal portal = new Server.ChildDataPortal();
     await portal.UpdateAsync(child, parameters).ConfigureAwait(false);
 }