Ejemplo n.º 1
0
        //public static int AddSchemaVersion(
        //    Guid applicationID,
        //    string applicationName,
        //    int major,
        //    int minor,
        //    int build,
        //    int revision)
        //{
        //    return dbPortal.SchemaVersion_AddSchemaVersion(
        //        applicationID,
        //        applicationName,
        //        major,
        //        minor,
        //        build,
        //        revision);

        //}

        public static bool UpdateSchemaVersion(
            Guid applicationId,
            string applicationName,
            int major,
            int minor,
            int build,
            int revision)
        {
            if (!DBPortal.SchemaVersionExists(applicationId))
            {
                return(DBPortal.SchemaVersionAddSchemaVersion(
                           applicationId,
                           applicationName,
                           major,
                           minor,
                           build,
                           revision));
            }

            return(DBPortal.SchemaVersionUpdateSchemaVersion(
                       applicationId,
                       applicationName,
                       major,
                       minor,
                       build,
                       revision));
        }