예제 #1
0
        public async Task <string> UpdateEFCoreASync(string FirstName, int id)
        {
            UserTestUpdate userTestUpdate = new UserTestUpdate(FirstName, id);
            await eFCoreASyncRepository.UpdateAsync(userTestUpdate);

            return("test");
        }
예제 #2
0
        public string UpdateEFCoreSync(string FirstName, int id)
        {
            UserTestUpdate userTestUpdate = new UserTestUpdate(FirstName, id);

            eFCoreSyncRepository.Update(userTestUpdate);

            return("test");
        }
예제 #3
0
 public async Task UpdateAsync(UserTestUpdate userTestUpdate)
 {
     context.UserTestUpdate.Update(userTestUpdate);
     await context.SaveChangesAsync();
 }
예제 #4
0
 public void Update(UserTestUpdate userTestUpdate)
 {
     context.UserTestUpdate.Update(userTestUpdate);
     context.SaveChanges();
 }