protected internal virtual void executeInsertEntity(string insertStatement, object parameter) { LOG.executeDatabaseOperation("INSERT", parameter); sqlSession.insert(insertStatement, parameter); // set revision of our copy to 1 if (parameter is HasDbRevision) { HasDbRevision versionedObject = (HasDbRevision)parameter; versionedObject.Revision = 1; } }
public virtual int insert(string statement) { return(wrappedSession.insert(statement)); }