tmsmith / Dapper-Extensions

Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance.
1.79k stars 586 forks source link

Predicate with VB.net and MySql #146

Open martinslae opened 7 years ago

martinslae commented 7 years ago

hello

I'm using Vb.net and MySql, Do predicates work with them?

see my code:

Dim p = Predicates.Field(Of model.empresa)(Function(x) x.nome, [Operator].Eq, "alex") Dim cn As New MySqlConnection(ConnectionString)

    cn.Open()
    Dim empresas = cn.GetList(Of model.empresa)(p)
    cn.Clone()

But i get error.

thanks

valfrid-ly commented 3 years ago

Which is the error?