About Me

I am a senior software developer working at KMS Technology, a software company based in Vietnam. I mainly focus on .NET technologies developing web and desktop applications.

My favorite topics are .NET Framework, C#, WCF, ORM, ASP.NET MVC, jQuery, Object Oriented Analyst and Design, Design Patterns and S.O.L.I.D principles.

Beside programming, I also like fishing, reading, and surfing the web in my spare time.

You can reach me at huynguyenonthenet at gmail dot com.

  1. Trịnh Minh Cường

    Hi Huy,

    Anh là Cường, đọc blog của em thấy hay quá. Anh cũng làm về ASP.net MVC 2.0. Sắp tới anh vào HCM công tác 24-25-26-27/08/2010.

    Nếu rảnh anh em mình gặp nhau nhé.

    Mobile của anh 0902 2090 11

  2. Doc bai cau ca cua anh em thich qua…em thich cau ca tu nhien nen thinh thoang hay rong doi tren chiec xe theo loi tien boi mo ta.
    Chi co duy nhat em chua lần nào thử nghiệm câu bông lâu và đặc biệt k biết liên hệ ai để thuê ghe tàu đi lại.
    ANh có thể hướng dẫn em được không? Em hay câu biển Vũng Tàu, Bình THuận…có đi Kiên Giang rồi.
    Nếu được anh có thể Pm em sô ddienj thoại anh em giao lưu k? Số em 0907401594
    SÀi gòn em hay câu chổ sông đoạn quận 2…

    • Chào bạn,

      Nếu bạn ở SG thì có thể đi câu bông lau ở Lý Nhơn – Cần Giờ. Số điện thọai đặt ghe thì bạn có thể liên hệ:

      Anh Nạu: 0904194008
      Anh Hí: 01267865258

      Khi bạn liên hệ, họ sẽ chỉ cho bạn đường đi và chuẩn bị những thứ cần thiết cho một chuyến câu bông lau.

      Thân.

  3. Hi, will you update your excellent library ef4prs to be compatible with EF 4.1 RC ?

    Thanks.

    Andrea

  4. @a.Huy,

    Em đang có ý định apply vào cty KMS của anh. Anh có thể cho mình biết sơ 1 số thông tin để có sự chuẩn bị apply vào, Quy trình phỏng vấn thế nào vậy anh?

  5. Hi Huy,

    Thanks for your excellent post on EF 4 Code First Generic Repos. I’m just trying to get my head around it. The first thing I’ve noticed is an unused class called DBContextInitializer. I’m just wondering what your intention was with that class?

    Also, I’m not entirely sure how to seed my newly created DB using your infrastucture. So in your tests project, I can see UseMyDBContextTests which used the DataSeedingInitializer:


    Database.SetInitializer(new DataSeedingInitializer());
    context = new MyDbContext(“DefaultDb”);

    customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository(context);
    repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository(context);

    The above makes sense. However, the RepositoryTests uses your infrastructure for managing multiple contexts and the model is compiled and built in DbContextBuilder:


    DbContextManager.InitStorage(new SimpleDbContextStorage());
    DbContextManager.Init(“DefaultDb”, new[] { “Infrastructure.Tests” }, true);

    customerRepository = new Infrastructure.Tests.Data.Lab.CustomerRepository();
    repository = new Infrastructure.Data.EntityFramework.Lab.GenericRepository();

    Any help on seeding would be much appreciated.

    Thanks.

    • After DbContextManager.Init() You can get the DbContext by calling:

      DbContext context = DbContextManager.Current;

      Seed(context); // implement Seed method to seed data

  6. Hello, I really enjoyed your article about the Repository pattern. I’d love to have some articles like this on my own site http://www.blackbeltcoder.com . If you were so inclined to publish an article on my site, you can have your profile link back to your site, which will help people find out about your site. We can also pay a modest fee for the right articles. But that is the type of content we would love to have. (You can reach me at http://www.blackbeltcoder.com/Contact.aspx .

  7. Hi Huy,

    thanks for your email and the link that u sent to me.

    if you do have any new topic about dotnet please forward to me.

    i am looking for ward to read your email

    thanks heap.

    Take care.

    Notes: sorry for too nosy where do u live now?

    cheers

  8. Hi Huy,

    We used your implementation of the specification pattern found in your blog (https://huyrua.wordpress.com/2010/07/13/entity-framework-4-poco-repository-and-specification-pattern/) for implementing our data access layer and would like to thank you on the really big help in making our queries a lot faster and testable. However, we are currently in the process of deploying it to our staging environment but ran into a issue wherein we had to run a sql server 2005 as the back-end db. I was wondering if ever there was a way I could set the provider manifest to 2005?

    Thanks in advance!

    • I have never seen that problem before, maybe because I haven’t tested the framework against SQL 2005. Maybe a little bit “googling” may help.

%d bloggers like this: