Beispiel #1
0
        /// <summary>
        /// Updates the without email and password.
        /// </summary>
        /// <param name="customer">The customer.</param>
        /// <exception cref="NotImplementedException"></exception>
        public void UpdateWithoutEmailAndPassword(Customer customer)
        {
            var customerEntry = FrederickContext.Entry(customer);

            customerEntry.Property("FirstName").IsModified = true;
            customerEntry.Property("LastName").IsModified  = true;
            customerEntry.Property("CountryId").IsModified = true;
        }
Beispiel #2
0
 /// <summary>
 /// Updates the specified entity.
 /// </summary>
 /// <param name="entity">The entity.</param>
 public void Update(T entity)
 {
     //FrederickContext.Set<T>().Update(entity);
     FrederickContext.Entry(entity).State = EntityState.Modified;
 }