/// <summary> /// Starts the process of creating a new entity without any default values. /// </summary> public virtual void Create() { using (LogGroup logGroup = LogGroup.Start("Creating a new entity.", NLog.LogLevel.Debug)) { CheckCreateController(); Create(CreateController.Create()); } }
/// <summary> /// Starts the process of creating a new entity using the provided entity as the default field values. /// </summary> /// <param name="entity"></param> public virtual void Create(IEntity entity) { using (LogGroup logGroup = LogGroup.Start("Preparing a create action.", NLog.LogLevel.Debug)) { CheckCreateController(); DataSource = entity; Form.DataSource = entity; CreateController.Create(entity); DataBind(); } }