public List <DataStructure.EnterpriseNode> Search(string filter, Enums.EnterpriseNodeType enterpriseNodeTypeId = Enums.EnterpriseNodeType.RealEnterPriseNode) { EnterpriseNodeCommandBuilder enterpriseNodeCommandBuilder = new EnterpriseNodeCommandBuilder(); SqlCommand query = enterpriseNodeCommandBuilder.Search(filter, enterpriseNodeTypeId); return(DBManager.GetCollection <DataStructure.EnterpriseNode>(base.ConnectionHandler, query)); }
public List <DataStructure.EnterpriseNode> Search(DataStructure.EnterpriseNode filter) { EnterpriseNodeCommandBuilder enterpriseNodeCommandBuilder = new EnterpriseNodeCommandBuilder(); SqlCommand query = enterpriseNodeCommandBuilder.Search(filter); return(DBManager.GetCollection <DataStructure.EnterpriseNode>(base.ConnectionHandler, query)); }