我不确定如何准确地表达我的问题,这可能是我在任何地方都找不到这样的例子的原因。我正在尝试使用MVC4和EF5 (也是Web API ),但我不确定如何继续使用模型,因为我以前从未真正使用过它们。但是,我希望它只是根据输入顺序自动编号。如何告诉EF自动递增字段?基本上就像一个没有限制的主键字段。这是我到目前为止所拥有的-我只是不确定如何继续:{ public
它没有给出正确的奖牌榜,我不知道我在代码中犯了什么错误。事实上,时间最少的运动员应该获得一枚金牌,而铜牌则应该获得一枚奖牌。# loop through the athlete dictionary # store the key of the dict_time as name and country and value as time in seconds
dict_time[item,athelete[item][0]] = athelete[item][1][0]*3600 + athelete