Castle.ActiveRecord.ActiveRecordMediator.Refresh C# (CSharp) Méthode

Refresh() public static méthode

Refresh the instance from the database.
public static Refresh ( object instance ) : void
instance object The ActiveRecord instance to be reloaded
Résultat void
		public static void Refresh(object instance)
		{
			ActiveRecordBase.Refresh(instance);
		}

Usage Example

 /// <summary>
 /// Refresh the instance from the database.
 /// </summary>
 /// <param name="instance">The ActiveRecord instance to be reloaded</param>
 public static void Refresh(T instance)
 {
     ActiveRecordMediator.Refresh(instance);
 }