static public PersistentStoreVersion Insert(PersistentStoreVersion entity)
 {
     using (IUpdateContext update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         PersistentStoreVersion newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
 static public PersistentStoreVersion Insert(PersistentStoreVersion entity)
 {
     using (IUpdateContext update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         PersistentStoreVersion newEntity = Insert(update, entity);
         update.Commit();
         return newEntity;
     }
 }
        static public PersistentStoreVersion Insert(IUpdateContext update, PersistentStoreVersion entity)
        {
            IPersistentStoreVersionEntityBroker broker        = update.GetBroker <IPersistentStoreVersionEntityBroker>();
            PersistentStoreVersionUpdateColumns updateColumns = new PersistentStoreVersionUpdateColumns();

            updateColumns.Build    = entity.Build;
            updateColumns.Major    = entity.Major;
            updateColumns.Minor    = entity.Minor;
            updateColumns.Revision = entity.Revision;
            PersistentStoreVersion newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }
 static public PersistentStoreVersion Insert(IUpdateContext update, PersistentStoreVersion entity)
 {
     IPersistentStoreVersionEntityBroker broker = update.GetBroker<IPersistentStoreVersionEntityBroker>();
     PersistentStoreVersionUpdateColumns updateColumns = new PersistentStoreVersionUpdateColumns();
     updateColumns.Build = entity.Build;
     updateColumns.Major = entity.Major;
     updateColumns.Minor = entity.Minor;
     updateColumns.Revision = entity.Revision;
     PersistentStoreVersion newEntity = broker.Insert(updateColumns);
     return newEntity;
 }