mysql - C# - Kerosene ORM - Can't find the default engine and the connection string -


i new c#/.net world , trying developp c# application using kerosene orm link mysql database. it's local database hosted wamp.

to initiate connection database via keroseneorm need provide engine name , connection string.

what engine name ? in kerosene code it's described :

/// <param name="name">a string containing either invariant name of engine, or /// tail part, or name of connection string entry in configuration files, /// or null. in later case, name of default connection string entry used.</param> 

i don't know "engine" tried add connection string entry in app.config file :

<connectionstrings>     <clear />     <add name="localdb"      providername="mysql.data.mysqlclient"      connectionstring="server=localhost;database=bms;uid=root;pwd=root;" /> </connectionstrings> 

but rise exception "cannot find 'localdb' registered engine."

so basically, "engine" , how can provide kerosene ? know may stupid question can't find answer on internet , kerosene not well-documented.

secondly, know connection string wrong, because server name not correct one, can't find right one. know server name when using wamp on local machine ? tried things "127.0.0.1" or "localhost\mysql_wampserver" nothing works.

thank in advance , sorry bad english (not native language).

the app.config must have section:

 <keroseneorm>     <customengines>       <add id="sqlserver2008"     type="kerosene.orm.sqlserver.v2008.concrete.dataengine" assembly="kerosene.orm.sqlserver.dll" />       <add id="sqlserver2012" type="kerosene.orm.sqlserver.v2012.concrete.dataengine" assembly="kerosene.orm.sqlserver.dll" />     </customengines>     <datalink connectionstring="localdb" />   </keroseneorm> 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -