zoukankan      html  css  js  c++  java
  • 调试代码过程中遇到的问题

    一:Get:所有的页面链接请求都是Get,链接中带参数,如果在后台用了[httppost]限制,则参数获取不到。

    如果一定要用Post限制,则需要在页面上先给该参数赋值,然后传到后台,post接收。

    链接:http://localhost:64343/Account/Logon?ReturnUrl=%2fConferenceManagement%2fControl

    后台接收

    以前一直没注意过这个问题,〒_〒,今天记录下来

    二:Entity Framework在生成数据库的时候,在cs文件中没有看到代码行。出现以下情况:

    // Default code generation is disabled for model 'D:\Project\GBJudicialCommittee\DBLibrary\GBCommitteeModel.edmx'.
    // To enable default code generation, change the value of the 'Code Generation Strategy' designer
    // property to an alternate value. This property is available in the Properties Window when the model is
    // open in the designer.

    是因为EF的生成代码的默认设置为了none,  只需要在edmx的页面空白处右击--〉属性 

    就可以生成实例类及上下文了。  参考

  • 相关阅读:
    window XP下 php5.5+mysql+apache2+phpmyadmin安装
    poj2478Farey Sequence
    poj2723Get Luffy Out
    niop2015day2
    P2473 [SCOI2008]奖励关
    P4284 [SHOI2014]概率充电器
    P2486 [SDOI2011]染色
    noip2015day1
    hdu 2795 Billboard
    exgcd
  • 原文地址:https://www.cnblogs.com/Joans/p/2875453.html
Copyright © 2011-2022 走看看