public string GetVersion2Display(int?InputVersion, string BuildNumber) { if (InputVersion == null) { return(""); } MinorVersionAssociation l_MinoVersionAssociation = null; var major = ComparableFields.GetMajorFromNumericVersion((int)InputVersion); int?middle = 0; int?least = 0; if (!string.IsNullOrEmpty(BuildNumber)) { l_MinoVersionAssociation = DBRegister.MinorVersionAssociations.SingleOrDefault(m => m.Major == major && m.BuildVersion == BuildNumber); } if (l_MinoVersionAssociation == null) { l_MinoVersionAssociation = DBRegister.MinorVersionAssociations.SingleOrDefault(m => m.Major == major); } if (l_MinoVersionAssociation != null) { middle = l_MinoVersionAssociation.Minor; least = l_MinoVersionAssociation.Patch; // Gibiino [RTC 10963] patch should be inserted with an input file } return(ComparableFields.BuildStringVersion(major, middle, least)); }
private static void InsertMinorVersions(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(MinorVersionAssociation.Import(Paths, log)); buffer.p_MinorVersionAssociation = db.MinorVersionAssociation.ToList(); }