Click here to Skip to main content
15,881,859 members
Articles / Hosted Services / Azure

Kerosene ORM: a dynamic, configuration-less and self-adaptive ORM for POCO objects supporting a SQL-like syntax from C#

Rate me:
Please Sign up or sign in to vote.
4.96/5 (71 votes)
1 Mar 2015CPOL35 min read 540.6K   4.6K   212  
The seventh version of the dynamic, configuration-less and self-adaptive Kerosene ORM library, that provides full real support for POCO objects, natural SQL-like syntax from C#, and advanced capabilities while being extremely easy to use.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

	<configSections>
		<!--Entry to identify the handler for the Kerosene ORM configuration section.-->
		<section name="keroseneORM" type="Kerosene.ORM.Configuration.ORMConfiguration, Kerosene.ORM" />
	</configSections>

	<startup>
		<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
	</startup>

	<!--The configuration section for Kerosene ORM.-->
	<keroseneORM>

		<!--Whether complex tags are kept or not (optional entry).-->
		<complexTags keep="TrueOrFalse" />

		<!--The connection string to use with Kerose ORM (optional entry).-->
		<connectionString name="WhateverValidEntryNameInThisFile" />

		<!--Options for data link transformers (optional entry).-->
		<transformers relax="TrueOrFalse" />

		<!--The collection of custom engines to register (optional entry).-->
		<!--id: mandatory, to differentiate among the entries in the configuration file.-->
		<!--type: mandatory, the name of the class where the engine is defined.-->
		<!--assembly: mandatory, the name of the assembly to load where the engine is defined.-->
		<!--invariantName: optional to override the provider used in the engine's class definition.-->
		<!--serverVersion: optional to override the server version used in the engine's class definition.-->
		<!--caseSensitiveName: optional to override the case sensitive name setting used in the engine's class definition.-->
		<!--parameterPrefix: optional to override the parameter prefix setting used in the engine's class definition.-->
		<!--positionalParameters: optional to override the positional parameters setting used in the engine's class definition.-->
		<!--supportsNativeSkipTake: optional to override the supports native skip take setting used in the engine's class definition.-->
		<customEngines>
			<add id="WhateverUniqueInThisFile"
				 type="TheClassNameOfTheEngine"
				 assembly="TheAssemblyNameOfTheEngine"
				 invariantName="TheInvariantProviderName"
				 serverVersion="TheServerVersion"
				 caseSensitiveName="TrueOrFalse"
				 parameterPrefix="TheParameterPrefix"
				 positionalParameters="TrueOrFalse"
				 supportsNativeSkipTake="TrueOrFalse"
				 />
		</customEngines>

	</keroseneORM>

</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Spain Spain
mbarbac has worked in start-ups, multinational tech companies, and consulting ones, serving as CIO, CTO, SW Development Director, and Consulting Director, among many other roles.

Solving complex puzzles and getting out of them business value has ever been among his main interests - and that's why he has spent his latest 25 years trying to combine his degree in Theoretical Physics with his MBA... and he is still trying to figure out how all these things can fit together.

Even if flying a lot across many countries, along with the long working days that are customary in IT management and Consultancy, he can say that, after all, he lives in Spain (at least the weekends).

Comments and Discussions