public int Compare(object x, object y) { EPayScale left = (EPayScale)x; EPayScale right = (EPayScale)y; if (left.SchemeCode.Equals(right.SchemeCode)) { return(left.Capacity.CompareTo(right.Capacity)); } return(left.SchemeCode.CompareTo(right.SchemeCode)); }
public static EPayScale GetObject(DatabaseConnection dbConn, object ID) { if (ID is int) { EPayScale obj = new EPayScale(); obj.PayScaleID = (int)ID; if (db.select(dbConn, obj)) { return(obj); } } return(null); }