linq outmost mapping category library


i've struggling problem past integrate days haven't found solution.



i have an visible studio fortitude 2 projects, initial dll business objects logic, digest winform application, anxiety dependency initial project.



i primarily wrote business objects charge linq mapping all operative fine. following i guess i try outmost mapping. i followed few opposite guides should work; however, everytime i ran formula fortitude i invalidoperationexception: mapping problem: can't form 'org.example.system.material' mapping, winform attempts emanate datacontext object.



after perplexing opposite configurations xml record i placed duplicate category gui fortitude underneath opposite namespace worked. doubt is, illusory map an vigilant category library it accomplished.



samples



dbmap.xml



<database xmlns="http://schemas.microsoft.com/linqtosql/mapping/2007" name="gravel_dev"><table name="dbo.materials" member="material">
<type name="org.example.system.material">
<column name="materialid" member="materialid" storage="mmaterialid" dbtype="uniqueidentifier null" isdbgenerated="true" isprimarykey="true"/>
<column name="code" member="code" storage="mmaterialcode" dbtype="char(4)"/>
<column name="description" member="description" storage="mdescription" dbtype="varchar(50)"/>
<column name="unitprice" member="unitprice" storage="munitprice" dbtype="decimal(5,2)"/>
</type>





winform loading



xmlmappingsource mapping = xmlmappingsource.fromurl("dbmap.xml");
mcontext = new datacontext(properties.settings.default.dbconn, mapping);
reloadtable();


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?