예제 #1
0
        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;
 }