public override Boolean Equals(object obj) { if ((obj == null) || (obj.GetType() != this.GetType())) { return(false); } CONSQL castObj = (CONSQL)obj; return((castObj != null) && (this.Id == castObj.Id)); }
public CONSQL(CONSQL data, Options option) : base(data, option) { if (option == Options.Light || option == Options.Me || option == Options.All) { //OptionName.Light if (option == Options.Me || option == Options.All) { this.Connection = (data.Connection != null) ? new SECConnection(data.Connection, Options.Light) : null; this.StoreProcedureConnection = (data.StoreProcedureConnection != null) ? new SECConnection(data.StoreProcedureConnection, Options.Light) : null; //this.DestinyConnection = (data.DestinyConnection != null) ? new SECConnection(data.DestinyConnection, Options.Light) : null; this.Company = (data.Company != null) ? new SECCompany(data.Company, Options.Light) : null; this.MainSQL = (data.MainSQL != null) ? new CONSQL(data.MainSQL, Options.Light) : null; this.Structure = (data.Structure != null) ? new CONStructure(data.Structure, Options.Light) : null; } } }