在这种情况下,我有2个实体,如Contract,Media.
public class Media : Entity
{
public string Name {get; set;}
public bool Enabled
*//other properties can be ignored..*
}
public class Contract : Entity
{
public string Code {get; set;}
*//other properties can be ignored..*
}
Run Code Online (Sandbox Code Playgroud)
合同有很多媒体,似乎它们是多对多的.
但!!首先,在ef代码中,我需要在ContractMedia表中增加3个字段(如果自动生成).例如StartDate,EndDate和Price.这些无法在媒体实体中添加.
如何在这种情况下映射?
当我想在我的项目中复制ember-app-kit-master文件时,我执行
cmd: cd C:\Users\hp-pc\Desktop\MyApp
Run Code Online (Sandbox Code Playgroud)
然后
cmd: npm install
Run Code Online (Sandbox Code Playgroud)
但是我遇到了一些错误:
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "G:\\Publish\\nodeJs\\\\node.exe" "G:\\Publish\\nodeJs\\node_mo
dules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\hp-pc\Desktop\MyApp
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.9
npm ERR! code ENOGIT
Run Code Online (Sandbox Code Playgroud)
这是我的package.json的一部分:
"repository": …Run Code Online (Sandbox Code Playgroud)