Memo fields null when using Dapper with ms-access

时间:2016-07-26 20:49:37

标签: c# ms-access dapper

I'm using Dapper to read ms-access 2007 tables, and today I find that Memo fields are returned as null. Dapper has been working okay with ms-access generally, except for this new Memo problem. This is an example Dapper method I am using.

    internal IEnumerable<MyItem> SelectItemsById(int id)
    {
        using (IDbConnection connection = OpenConnection())
        {
            const string query = "SELECT * FROM tbl1 inner join tbl2 on (tbl2.ID = @ID and tbl2.ID = tbl1.ID)";
            return connection.Query<MyItem>(query, new { ID = id });
        }
    }

Kind of at loss on this one, there is not a lot of information out there.

0 个答案:

没有答案