2
I am looking for a solution from a generic repository to a DAL with a generic Find method, so there is no redundancy in my code. Using ADO.NET and Procedures.
I found something in this link:
What would be the best way to make a CRUD for a framework in the most generic way possible?
Generic signature:
List Selecionar(IEnumerable operadores);
But I didn’t quite understand how to work with this list of operators.
Since I will use Procedure by passing the parameters to my Procedure, there is some practical way for me to pass the operators to my Procedure in a generic way using ADO.NET?
Nice guy, you gave me a good look at your code. But one thing, before passing the Operators List to the method you popularized this List with parameters like ? Pq the method receives a list of the fixed type Operator already with the parameters set in that list.
– Francisco Proença
@Franciscoproença See in the other answer the method
ExtrairParametros
. I think it’ll help.– Leonel Sanches da Silva