Ejemplo n.º 1
0
        /// <summary>
        /// Saves the object.
        /// </summary>
        /// <param name="abstractTypeSavingContext">The abstract type saving context.</param>
        public virtual void SaveObject(AbstractTypeSavingContext abstractTypeSavingContext)
        {
            //Run the object construction
            var savingArgs = new ObjectSavingArgs(GlassContext, abstractTypeSavingContext.Object, abstractTypeSavingContext, this);

            _objectSaving.Run(savingArgs);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Used to create the context used by DataMappers to map data from a class
 /// </summary>
 /// <param name="creationContext">The Saving Context</param>
 /// <returns></returns>
 public abstract AbstractDataMappingContext CreateDataMappingContext(AbstractTypeSavingContext creationContext);
Ejemplo n.º 3
0
 /// <summary>
 /// Used to create the context used by DataMappers to map data from a class
 /// </summary>
 /// <param name="creationContext">The Saving Context</param>
 /// <returns></returns>
 public abstract AbstractDataMappingContext CreateDataMappingContext(AbstractTypeSavingContext creationContext);
Ejemplo n.º 4
0
 /// <summary>
 /// Saves the object.
 /// </summary>
 /// <param name="abstractTypeSavingContext">The abstract type saving context.</param>
 public virtual void SaveObject(AbstractTypeSavingContext abstractTypeSavingContext)
 {
     //Run the object construction
     var savingArgs = new ObjectSavingArgs(GlassContext, abstractTypeSavingContext.Object, abstractTypeSavingContext, this);
     _objectSaving.Run(savingArgs);
 }