none
codefirst模式,BLL层中的T4怎么引用实体模型? RRS feed

答案

  • 你好,

    Code First 不需要用到T4 模板的吧,如果是Code First 模式,应该是直接手写的Model吧。或者从数据库里面导出Model.

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年4月25日 0:51
    版主

全部回复

  • 你好,

    Code First 不需要用到T4 模板的吧,如果是Code First 模式,应该是直接手写的Model吧。或者从数据库里面导出Model.

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年4月25日 0:51
    版主
  • 是手写MODEL啊

    但是,没写一个MODEL 都要写一次BLL

    如果有很多表,岂不是要爆炸了吗?

    2018年4月26日 1:43
  • 是手写MODEL啊

    但是,没写一个MODEL 都要写一次BLL

    如果有很多表,岂不是要爆炸了吗?

    2018年4月26日 1:43