Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public virtual int insert(string statement)
 {
     return(wrappedSession.insert(statement));
 }