- What is ABC?
- What are the five different contracts?
- What is the advantage of XML Serialization over data contracts? Ans. Data Contracts
- What are the three types of patterns?
- What are the different Application Patterns? Ans. MVC, MVVM
- What is the difference between Page Controller and Front Controller?
- What takes more power? Cell or Wireless? Ans. Cell because the battery need to be charged. The Wireless is bandwidth per second.
wcf
December 27th, 2011Struct Vs Class
December 24th, 20111. Struct is a value type. Class is a reference.
2. Struct is created on stack. Class is created on the heap.
3. Struct can’t have parameterless default constructors. Class can have parameterless constructors.
4. Struct can’t be inherited like class. Struct can inherit from Object.
5. Struct is faster. Class is slow.
Microsoft Enterprise Library
December 22nd, 2011The Microsoft Enterprise Library has the following code blocks:
- Caching
- Cryptography
- Data Access
- Exception Handling
- Logging
- Policy Injection
- Security
- Unity
- Validation
SQL Group by
December 19th, 2011select name, sum(salary) from employee
The employee table may have 100 employees. Running the above statement return a single row for the sum(salary) and 100 rows for name. The sql can’t return this data set, so a ‘group by’ statement will help like this: select name, sum(salary) from employee group by name.
IEnumerable Vs IQueryable
December 19th, 2011IEnumerable and IQueryable both work with data sources to return data. The IQueryable makes a tree expression and return efficient data while IEnumerable return ineffienct data. IEnumerable has to work in the inefficient data to return the efficient data again.