Home > ADO.NET

Simple way to generate connection string from text file

Common issue generally every developer faces in his initial days of development is how to generate connection string that connects my application to the database. Especially when we don't have sql management studio installed or if we are facing licensing issues.Well, a text file can come to a rescue.  To overcome such

This Article is TAGGED in , , , , , , . Read more

What is Null Conditional Operator?

"The null conditional operator prevents the execution of a method if the caller object is null."Explaination:Whether you are novice or experienced developer you must be familiar with null reference exceptions. You must be tired of writing null checking code to make sure your application handles null references correctly. The null-conditional

This Article is TAGGED in , . Read more

Lazy loading in entity framework

One of the biggest issue when we use entity framework that is when we request for one single table you will get all related tables in table object. for example: [crayon-62bb01a06f7a4030306654/]  in above code you will get all related tables in company object. We can avoid this using Lazy loading. for example: [crayon-62bb01a06f7ab532169878/]  in this case you can get only

This Article is TAGGED in , , , , , . Read more