The goal of this blog is to describe how to implement implicit validation of the entities in Telerik DataAccess.
Before you begin, the Telerik DataAccess Context Extensions nuget should be installed:
The Telerik DataAccess Context Extensions nuget provides developers with a DataAccessContext, that adds additional functionality to the OpenAccessContext.
You could directly use this implementation or introduce your own one, that derives from it, in your data layer codebase.
Now you could instantiate a new context instance using the Fluent API introduced in the Telerik DataAccess Context Extensions:
Further information regarding the validation in Telerik DataAccess and how to use it, can be found here.
Creating a new OpenAccessContext using a fluent API.
To be able to create a new OpenAccessContext instance using fluent API means you should install the Telerik DataAccess Context Extensions nuget:
Now it is very easy to instantiate a context instance:
Further information regarding the API and how to use it, can be found here.
The goal of this blog is to describe how to create a new NodeJS module.
You should clone the nodejs-module-init GitHub repository to kick-start a new NodeJS module:
git clone https://github.com/damyanbogoev/nodejs-module-init.git
Go to the nodejs-module-init folder and install the module dependencies:
One last thing to do is to remove the .git folder and modify the README.md file accordingly, so that it describes the new NodeJS module.
The NodeJS module template uses Grunt and Mocha for automation and testing. To be able to execute the Grunt tasks you should install the grunt-cli and mocha packages globally:
npm install grunt-cli -g
npm install mocha –g
Helpful information regarding the Grunt tasks used internally by the module template can be found here.
Now you are ready to start working on your new NodeJS module. You could run the grunt tool with the default task which will watch for changes in your module and in case of such – to run JSHint over the js files and execute the Mocha tests.