cerberis wrote:
Hello,
we are using latest LLBLGenPro (4.1-Final) with model first and adapter scenario.
When trying to create entities I do not see Binary type in Field mapping->Edit mapping dialog.
Is this by design or a designer bug?
You work with type shortcuts in the designer, which are type shortcuts for .NET types. 'Binary' is a db type so this isn't usable in .NET. Binary is converted/mapped as byte[], and therefore you should use the byte[] type shortcut.
Another problem is with DateTime type. MySQL (and MariaDB) already has a support for DateTime type with fractional settings:
http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
Seems that LLBLGenPro designer generates scripts without supporting fractional seconds.
I was able to modify templates to generate database fields with hardcoded precision, however would be nice to have this support also in designer.
Thanks, we'll look into whether we can still include this before 4.2 goes beta
Still another problem remains - queries shown in the trace are without fractional seconds (however - data inserted in db correctly).
any ideas?
with best regards
Mantas
The trace logs do a simple ToString() on the value, so the datetime value is emitted in the trace log as datetime.ToString(), which might not be as precise as wanted. We'll look into changing this to emitting the standardized default.