internal static int Compare(Installation x, Installation y) { int result = 0; result = string.Compare(x.Name, y.Name, true); if (result == 0) { result = CompareVersion(x.Version, y.Version); } if (result == 0) { if (x.IsInstalled && !y.IsInstalled) result = -1; if (!x.IsInstalled && y.IsInstalled) result = 1; } return result; }
public static long Add(Installation inInstallation, Xy.Data.DataBase DB = null) { Xy.Data.Procedure item = XiaoYang.Installation.Installation.GetProcedure(R("Add")); inInstallation.FillProcedure(item); return (long)item.InvokeProcedureResult(DB); }