-->

Jun 10, 2014

Primary Key vs Unique Key

Primary Key vs Unique Key
S.NoParticularsPrimary KeyUnique Key
1null valuecan't accept null values.can accept Only One null value.
2keyonly one Primary key in a table.more than one Unique key in a table.

Jun 9, 2014

Primary Key vs Foreign Key

Primary Key vs Foreign Key
S.NoParticularsPrimary KeyForeign Key
1null valuecan't accept null values.can accept Only One null value.
2keyonly one Primary key in a table.more than one foreign key in a table.

Jun 8, 2014

IENUMERABLE vs IQUERYABLE

IENUMERABLE vs IQUERYABLE
S.NoParticularsIENUMERABLEIQUERYABLE
1NamespaceSystem.CollectionsSystem.Linq
2Suitable forLINQ to Object and LINQ to XML.LINQ to SQL.
3custom querydoesn’t supports.supports custom query using CreateQuery and Execute methods.
4lazy loadingdoesn’t supports.supports.

Jun 7, 2014

ILIST vs IENUMERABLE

ILIST vs IENUMERABLE
S.NoParticularsILISTIENUMERABLE
1Add/Remove ItemSupport.doesn't support.
2Filteringdoesn't support.Support.

Jun 6, 2014

Store Procedure Vs LINQ

Store Procedure Vs LINQ
S.NoParticularsStore ProcedureLINQ
1FasterFaster than LINQ.Slower than Store Procedure.
2DebugNot Allowed.Allowed.
3writing complex queriesBest Way.Not Possible.
4DeploySQL script for deployment.easy and simple.