/// <summary> /// Save adding of the item that is registered to be added to a persistent storage. /// </summary> /// <param name="item">Entity item.</param> protected override void SaveAddedItem(TUserLogin item) { DbCommandContext cmdContext = CommandBuilder.GetInsertCommand( new List <TUserLogin> { item }); StorageContext.AddCommand(cmdContext); }
/// <summary> /// Save the removing of the item that is registered to be remvoed from a persistent storage. /// </summary> /// <param name="item">Entity item.</param> protected override void SaveRemovedItem(TUser item) { DbCommandContext cmdContext = CommandBuilder.GetDeleteCommand( new List <TUser> { item }); StorageContext.AddCommand(cmdContext); }
/// <summary> /// Save changes in the item that is registered to be changed to a persistent storage. /// </summary> /// <param name="item">Entity item.</param> protected override void SaveChangedItem(TRole item) { DbCommandContext cmdContext = CommandBuilder.GetUpdateCommand( new List <TRole> { item }); StorageContext.AddCommand(cmdContext); }