none
about DbContext+complex types context.Database.SqlQuery<T>() RRS feed

  • 常规讨论

  • Use context.Database.SqlQuery<T>() can return any complex type

    but if in EF4.1 has a method, use it I can return a special type that is similar ViewBag, that has dynamic property.

    this is,  we need not predefine the type's any property, but I can access it property in View, for example @ViewBag.anydynamicproperty

    2011年5月10日 10:06