{%Pragmatic Coding%} Tips and tricks for software developers.

25May/121

Entity Framework: Insert, Update, Delete records

Every .NET developer sometime will start using ADO.NET Entity Framework.
And first question will be such as how to insert, update and delete records.
Performing basic Inser, Update and Delete operations via the Entity Framework is very straight forward.

Before you make any of thase operations you need to declare entyty

Read the full article...

4Feb/120

Validation Controls in SharePoint

Recently I had to compare 2 E-mail fields in the form with SharePoint field controls. And this article will describe the usage of SharePoint validation controls.

Introduction

The Microsoft.SharePoint.WebControls namespace of the Microsoft.SharePoint.dll contains a number of controls such as validation controls that can be used on any application pages to validate user entry in the SharePoint controls.
To use SharePoint control all your classes in project namespace require that a page directive like the following be included in the ASPX page containing the control:

You can obtain the PublicKeyToken value for the current Windows SharePoint Services deployment from the default.aspx file in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\SiteTemplates\STS folder, or from information provided for the Microsoft.SharePoint assembly atLocal_Drive:\%WINDOWS%\assembly in Windows Explorer.
Read the full article...

27Dec/110

Threading in .NET guide – Part 1

Hello my dear friend!

I'm starting the collection of articles about threading|multithreading programming in C# .NET.

Why now? I'm really wanted to write such collection year ago but as usually work is on the first place. I've got new experience in programming and ready to give materials for your brain in easiest way. So, please, be patient and I'll give samples to be understandable for beginners and for advanced.

Let's get the party!

Part 1 devoted to the introduction in threading.

I have read a lot of material dedicated to threading in .NET and finally want to share my knowledge and with the same way to learn something new. Next part I plan to give you after new year and can't say for sure it's going to be about. Probably it's going to be about Lifecycle of Threads or Synchronization. Just follow me on Tweeter and you'll be in touch with all updates! Read the full article...