Profile cover photo
Profile photo
Nam Le
272 followers
272 followers
About
Nam's posts

Post has attachment

Post has attachment
Public
Product application with Pluggable ASP.NET MVC application
This article discuss about how to develop  ASP.NET  MVC application which has loosely coupled modules (or features) which can be developed separately without any directly dependency and those modules can be plugged-in to main application without any extra b...

Post has attachment

Post has attachment
Public
ASP.NET MVC 5 Authentication Filters - Phân quyền cho action và controller MVC5
Chào các bạn hôm này Cường xin chia sẻ phân quyền cho MVC, phân quyền cho từng Action của Controller trong MVC5. Chức năng phân quyền này mình dựa trên phần quyền của AspNet Đầu tiên các bạn cần chuẩn bị DB (mình phân tích thì sử dụng các bảng sau) Sau đó c...

Post has attachment
Public
How to join 3 tables with lambda expression?
Just a guess: var myList = Companies . Join ( Sectors , comp => comp . Sector_code , sect => sect . Sector_code , ( comp , sect ) => new { Company = comp , Sector = sect }) . Join ( DistributionSectorIndustry . Where ( dsi => dsi . Service == "numerical" ),...

Post has attachment
Public
How to use LINQ Contains() to find a list of enums?
I have an enum called  OrderStatus , and it contains various statuses that an Order can be in: Created Pending Waiting Valid Active Processed Completed What I want to do is create a LINQ statement that will tell me if the OrderStaus is Valid, Active, Proces...

Post has attachment
Public
Entity Framework filter data by string sql
I am storing some filter data in my table. Let me make it more clear: I want to store some  where clauses and their values in a database and use them when I want to retrieve data from a database. For example, consider a  people  table (entity set) and some ...

Post has attachment
Public
When To Use IEnumerable, ICollection, IList And List
I think that the question when to use IEnumerable , ICollection , IList or List is a common one that hasn’t often being answered in an easy way. I not
only want to do this within this article, but I also want to give you
some further information to unders...

Post has attachment

Post has attachment
Public
Entity Framework .Remove() vs. .DeleteObject()
It's not generally correct that you can " remove an item from a database " with both methods. To be precise it is like so: ObjectContext.DeleteObject(entity)  marks  the entity as  Deleted  in the context. (It's  EntityState  is  Deleted  after that.) If yo...
Wait while more posts are being loaded