Posts

Showing posts from June, 2014

Common Design Pattern

http://mohammadnazmul.blogspot.com/2014/02/design-patterns-gof-design-patterns-are.html Behavioral ·          Strategy  ·          State  http://www.dreamincode.net/forums/topic/185616-design-patterns-state/ ·          Template method   Creational Patterns ·          Factory  ·          Abstract Factory   ·          Singleton  Structural Patterns ·           Proxy ·          Decorator  ·           Adapter /Wrapper ·           Facade                      ...

Viva-Entity Framework

Image
1.        What is Entity Framework? Entity Framework is an additional layer between application and database that enables the developers to program against the conceptual application model instead of programming directly against the relational storage schema. 2.        Will there be any issues adding a table without primary keys to a data model? Every entity must have a key, even in the case where the entity maps to a view. When you use the Entity Designer to create or update a model, the classes that are generated inherit from EntityObject, which requires EntityKey. So, we have to have a primary key in the table to add it to the data model. 3.        How do you truncate a table using entity data model? Unfortunately Entity Framework doesn't include anything straight forward to handle this. But we can still call a T-SQL statement using entity framework that will still minimizes the deve...