-
Subscription
About me

Name: Sachin, aka "Sach"
Web Site: http://www.sachinjain.me
Bio: I am an IT professional from india who is working from last 8 years in this industry and currently working with global leading companies. Here I would like to share my knowledge, experience and hopefully that will be useful to you people.
Categories
- .Net (7)
- WCF (2)
- Web Services (1)
- C# (6)
- Design Patterns (2)
- Management (4)
- Individual (3)
- Organization (2)
- New Updates (2)
- SQL Server (4)
- SQL Server 2005 (3)
- SQL Server 2008 (4)
- .Net (7)
Popular
.Net .Net WCF abstract class Architecture asp.net 4.0 C# Communication Design Pattern dynamic 4.0 Error Tracking Event log Features fo windows 7 HRM HR Managers Individual interface interview tips LINQ LINQ Queries Management Non Verbal paging preventing select * Singelton SQL Server unique constraint var asp.net WCF Web Services Windows 7
WCF Architecture
Following is the diagram for WCF architecture
1. Contracts - It contains information about what service does and type of information it will make available.
a) Data - A data contract includes the data that will be exchanged by the service. The service and the client do not need to agree on the types, but they ...
Naming Conventions and Standards – C#
1) Use Pascal casing for type and method names and constants:
public class YourClass
{
const int ConstantVariable = 100;
public YourMethod( )
{}
}
2) Use camel casing for local variable names and method arguments. Use p prefix for parameterized vairables:
int intNumber;
void MyMethod(int pintNumber)
{} ...
Generate Paging – Custom function
Here it goes
private int mstrPageSize = 1;
private int mstrTotalRecords = 1;
private int mstrCurrentPage = 1;
public int PageSize
{
get
{
...
Reading event log – Only exception part
Here is the few line code
try
{
int intCount = 1;
EventLog EventLog1 = new EventLog();
...
whats new in asp.net 4.0
1) Permanent redirect - for HTTP 301 Moved Permanently you can now use RedirectPermanent("yourpage.aspx");
2) Meta Properties- Now you can use page.MetaKeywords and page.metaDescription for setting up meta tags.
3) Compressing session state - ASP.NET 4 introduces a new compression option for both kinds of out-of-process session-state providers. Example
when compressionEnabled is set to true ...
Singelton pattern
Singelton pattern is required where we need single instance of class. Example in financial domain applications there is major requirement of security and class need to have single instance and no other can use same instance of the class.
We define singelton pattern as - Ensure a class has only one instance and provide a global point of ...
Difference between interface and abstract classes
Following are the 6 differences between abstract classes and interfaces :-
1) A class can implement as many interfaces, but an subclass at most one abstract class.
2) Abstract class can have non abstract methods but all methods of interface are abstract.
3) Abstract class can declare and use variables but interface cannot.
4) Interface don't have different access ...
Creating web services in SQL server
For creating web service in SQL server you need to understand http end points. So what is http end points ? It provide an interface using TCP or http for SOAP.
Web Services in sql server return rowset data, scalar values , messages and errors. This all can be done withhout IIS.
For creating web service in ...
Why HR Managers?
On this blog I would like to ask why HR managers needed in an organization ? Are they needed for Recruitment ? Are they needed for payroll management ? Are
they needed for appraisel ? All these things can be outsourced as well, then why we need an HR manager in organization itself ? What ...
Good Managers – Manage Yourself ?
To be posted soon !!