This question is locked. New answers and comments are not allowed.
Hi!
I'm developing in XAML (Window), and I'm noting first time application window runs and is binding elements against ORM assembly (where Entity classes generated from database) fields, window takes more or less 4 or 5 seconds to show elements with data, next time (without exit) same window or another is loaded, time is faster to show window. I'm using a class derived from OpenAccessContext to make any operations (created automatically by OpenAccess). how can I do to open database (I believe caused by this) and close it by code?
thanks
I'm developing in XAML (Window), and I'm noting first time application window runs and is binding elements against ORM assembly (where Entity classes generated from database) fields, window takes more or less 4 or 5 seconds to show elements with data, next time (without exit) same window or another is loaded, time is faster to show window. I'm using a class derived from OpenAccessContext to make any operations (created automatically by OpenAccess). how can I do to open database (I believe caused by this) and close it by code?
thanks