Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with dynamic

  • How to implement Generic Queries by combining EntityFramework Core and GraphQL.NET?

    Currently, I have struggled with the problems that I have to implement many times the query for any entity in my data model. I thought if we can expose all entities to the APIs (or maybe have a way to limited some of the sensitive entities) would be great, and then others simply to query it (like a generic query to avoid boilerplate code when we implemented over and over the query function for all entities in the system).

  • BDD with Specflow, Moq and Microsoft Unit Testing framework

    BDD (Behavior Driven Development) is very popular in these days. I know a lot of companies used BDD in our projects. So I also had some curios about it and I applied for my current project. I used Specflow, Moq and Microsoft Testing framework for working. I did it and found out some things very interested in. In this post I will not focus on what it BDD? What is Mock, stub or how to write a unit testing? Readers can easy find on internet, just googling it and everything will be okay. I just focus on the some best things I found when I implemented the BDD on my code. I used AAA (Arrange-Act-Assert) and GWT (Given-When-Then) patterns in my code. They are clearly and easily to understand and become standard when you write unit testing and mocking.

  • dynamic, Why not?

    In these days, people begin to expertise some new features in .NET 4.0. And I am same to them as well. One of features I like and write to this post is dynamic keyword. It is not new, at least in PHP, Python, Ruby... But in .NET world, I think it is new and ship to .NET 4.0 as a default. And some of projects are ported to .NET based on DLR as IronPython, IronRuby. We can use dynamic keyword in anywhere in our project. How do you think about it? So dynamite, isn’t it? :D. Some of people are didn’t like it, some else are love it. How about you? With me, I only try to utilize a new feature in .NET 4.0 for make my work is easier.