DBContext = contextobject Entity= tablename/entiry name var obj= DBContext.Entity.Create(); DBContext.Entity.add(obj); then obj has all reference/navigation. var obj= new Entity(); DBContext.Entity.add(obj); then obj has not reference/navigation map. Read more →
Category: ADO.net/ Entity Framework
Memory management in .Net
main concern for any application whether application is window based or web based. In .Net, CLR has garbage collector that executes as a part of our program and responsible for reclaiming the memory of no longer used objects. Garbage collector free the memory for objects that are no longer referenced and keeps the memory for future allocations. Advantage of Garbage… Read more →
Entity framework questions
1) What is the advantage and disadvantage of Entity Framework Advantages: One common syntax (LINQ) for all object queries whether it is database or not , Pretty fast if used as intended , easy to implement SoC , less coding required to accomplish complex tasks. Its fast and straight forward using LINQ/FE objects For Add/Modify/Delete/Update. Easy to map business objects… Read more →
Some Public functions are not showing in object or drive class
All constructor functions are PUBLIC but not showing in object or inherited class object. Constructors never return anything.(constructors always void) public static member are also not show in any object. Read more →
POCO,Code first,model first and database first discussion
POCO is a stand for plain old CLR object. This Class where we have control over its base type and implemented interfaces so it doesn’t have to use any API specific features – that works same in whole EF. Code first is still EF and it uses internally same infrastructure like EDMX so there is no difference. Difference is how… Read more →