- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试编译一个新创建的 Play 项目,但由于依赖问题而无法编译。
虽然我已连接到互联网,但仍收到以下错误。有什么想法吗?
D:\Git_Work\RSVP\rsvp-portal>activator run
[info] Loading project definition from D:\Git_Work\RSVP\rsvp-portal\project
[info] Set current project to rsvp-portal (in build file:/D:/Git_Work/RSVP/rsvp-portal/)
[info] Updating {file:/D:/Git_Work/RSVP/rsvp-portal/}root...
[info] Resolving com.typesafe.play#twirl-api_2.11;1.1.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/twirl-api_2.11/1.1.1/twirl-api_2.11-1.1.1.pom
[warn] module not found: com.typesafe.play#twirl-api_2.11;1.1.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\twirl-api_2.11\1.1.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\twirl-api_2.11\1.1.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\twirl-api_2.11\1.1.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/twirl-api_2.11/1.1.1/twirl-api_2.11-1.1.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/twirl-api_2.11/1.1.1/twirl-api_2.11-1.1.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/twirl-api_2.11/1.1.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-server_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-server_2.11/2.4.1/play-server_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-server_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-server_2.11/2.4.1/play-server_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-server_2.11/2.4.1/play-server_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-server_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-java_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-java_2.11/2.4.1/play-java_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-java_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-java_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-java_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-java_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-java_2.11/2.4.1/play-java_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-java_2.11/2.4.1/play-java_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-java_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-netty-server_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-netty-server_2.11/2.4.1/play-netty-server_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-netty-server_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-netty-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-netty-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-netty-server_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-netty-server_2.11/2.4.1/play-netty-server_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-netty-server_2.11/2.4.1/play-netty-server_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-netty-server_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-java-jdbc_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-java-jdbc_2.11/2.4.1/play-java-jdbc_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-java-jdbc_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-java-jdbc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-java-jdbc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-java-jdbc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-java-jdbc_2.11/2.4.1/play-java-jdbc_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-java-jdbc_2.11/2.4.1/play-java-jdbc_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-java-jdbc_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-cache_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-cache_2.11/2.4.1/play-cache_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-cache_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-cache_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-cache_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-cache_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-cache_2.11/2.4.1/play-cache_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-cache_2.11/2.4.1/play-cache_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-cache_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-java-ws_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-java-ws_2.11/2.4.1/play-java-ws_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-java-ws_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-java-ws_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-java-ws_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-java-ws_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-java-ws_2.11/2.4.1/play-java-ws_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-java-ws_2.11/2.4.1/play-java-ws_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-java-ws_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-test_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-test_2.11/2.4.1/play-test_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-test_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-test_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-test_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-test_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-test_2.11/2.4.1/play-test_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-test_2.11/2.4.1/play-test_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-test_2.11/2.4.1/ivys/ivy.xml
[info] Resolving com.typesafe.play#play-omnidoc_2.11;2.4.1 ...
[error] Server access Error: Read timed out url=https://repo1.maven.org/maven2/com/typesafe/play/play-omnidoc_2.11/2.4.1/play-omnidoc_2.11-2.4.1.pom
[warn] module not found: com.typesafe.play#play-omnidoc_2.11;2.4.1
[warn] ==== local: tried
[warn] C:\Users\naviyehezkel\.ivy2\local\com.typesafe.play\play-omnidoc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] D:\Git_Work\RSVP\rsvp-portal\repository\com.typesafe.play\play-omnidoc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] D:\Java\typesafe-activator-1.3.4\activator-1.3.4\repository\com.typesafe.play\play-omnidoc_2.11\2.4.1\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/play-omnidoc_2.11/2.4.1/play-omnidoc_2.11-2.4.1.pom
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-omnidoc_2.11/2.4.1/play-omnidoc_2.11-2.4.1.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/play-omnidoc_2.11/2.4.1/ivys/ivy.xml
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.play#twirl-api_2.11;1.1.1: not found
[warn] :: com.typesafe.play#play-server_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-java_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-netty-server_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-java-jdbc_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-cache_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-java-ws_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-test_2.11;2.4.1: not found
[warn] :: com.typesafe.play#play-omnidoc_2.11;2.4.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.typesafe.play:play-server_2.11:2.4.1 ((play.sbt.PlaySettings) PlaySettings.scala#L55)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-java-ws_2.11:2.4.1 (D:\Git_Work\RSVP\rsvp-portal\build.sbt#L9-14)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-test_2.11:2.4.1 ((play.sbt.PlaySettings) PlaySettings.scala#L63)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-java_2.11:2.4.1 ((play.sbt.PlayJava) Play.scala#L44)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-omnidoc_2.11:2.4.1 ((play.sbt.PlaySettings) PlaySettings.scala#L69)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-java-jdbc_2.11:2.4.1 (D:\Git_Work\RSVP\rsvp-portal\build.sbt#L9-14)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-netty-server_2.11:2.4.1 ((play.sbt.PlayNettyServer) Play.scala#L68)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:play-cache_2.11:2.4.1 (D:\Git_Work\RSVP\rsvp-portal\build.sbt#L9-14)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
[warn] com.typesafe.play:twirl-api_2.11:1.1.1 ((play.twirl.sbt.SbtTwirl) SbtTwirl.scala#L71)
[warn] +- rsvp-portal:rsvp-portal_2.11:1.0-SNAPSHOT
sbt.ResolveException: unresolved dependency: com.typesafe.play#twirl-api_2.11;1.1.1: not found
unresolved dependency: com.typesafe.play#play-server_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-java_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-netty-server_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-java-jdbc_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-cache_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-java-ws_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-test_2.11;2.4.1: not found
unresolved dependency: com.typesafe.play#play-omnidoc_2.11;2.4.1: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:291)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:188)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:165)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:155)
at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:132)
at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
at sbt.IvySbt.withIvy(Ivy.scala:127)
at sbt.IvySbt.withIvy(Ivy.scala:124)
at sbt.IvySbt$Module.withModule(Ivy.scala:155)
at sbt.IvyActions$.updateEither(IvyActions.scala:165)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1369)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1365)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$87.apply(Defaults.scala:1399)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$87.apply(Defaults.scala:1397)
at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1402)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1396)
at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
at sbt.Classpaths$.cachedUpdate(Defaults.scala:1419)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1348)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1310)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#twirl-api_2.11;1.1.1: not found
[error] unresolved dependency: com.typesafe.play#play-server_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-java_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-netty-server_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-java-jdbc_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-cache_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-java-ws_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-test_2.11;2.4.1: not found
[error] unresolved dependency: com.typesafe.play#play-omnidoc_2.11;2.4.1: not found
[error] Total time: 193 s, completed 13:28:48 28/06/2015
D:\Git_Work\RSVP\rsvp-portal>
非常感谢您的帮助!
编辑:我在尝试运行“activator run”和“activatorcompile”时遇到了同样的错误。
最佳答案
我知道这个问题是针对 play 2.4 的,但我在 play 2.5 中遇到了类似的错误(特别是它无法解决旋转的部分)
在play 2.5中,支持的最新scala版本是2.11.11,因此如果您使用的是scala版本2.12,则应将其更改为2.11。
在 build.sbt 中:
scalaVersion := "2.11.11"
之后,在 sbt 中,我输入 reload
,然后输入 compile
,一切又恢复正常
关于playframework - 无法解决 Play Framework 的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31098780/
这个问题在这里已经有了答案: 10年前关闭。 Possible Duplicates: What is a framework? What does it do? Why do we need a f
我在按照 http://msdn.microsoft.com/en-us/data/jj591621.aspx 处的 Microsoft Data Developer 过程启用代码优先迁移时遇到了一些
我正在从 迁移项目 Entity Framework 4.3 在 .net 4 上运行到 Entity Framework 5 在 .net 4.5 上运行。在不做任何更改的情况下,当我尝试运行该项目
我正在使用 Entity Framework 6 并使用 EntityFramework Extended 来执行一些批量更新和批量删除。批量更新和批量删除工作正常,但我还需要知道更新/删除的实体(即
我在实体上添加了一个列,然后从模型中生成数据库或构建解决方案,然后收到一条消息,提示我刚添加的新列未映射。该数据库以前是从模型创建的,没有错误。 当我右键单击Entity并选择Table Mappin
每次我尝试运行我的代码时都会崩溃,因为我尝试启动函数以调用 SDK 的任何部分。 我在构建过程中包含了 FoundationSDK: 并且我在头文件中包含了对 SDK 的引用: 但是每次我运行这个,我
我以前能够毫无问题地提交我的申请。我的工作流程中唯一改变的部分是使用 Sourcetree。在对以下框架进行更新后,我在提交到 iOS App Store 时收到此警告。我还收到一封电子邮件,其中包含
假设我为 Asp.NET Web 应用程序安装了 .NET Framework 2.0、3.0、3.5。 我意识到 Framework 3.0 和 3.5 只是 Framework 2 的扩展,不太清
是否有 SaveChanges 事件在保存更改后但在更新更改跟踪器之前触发? 我正在使用 EF 6。 我需要在某个实体的状态发生变化时执行任务。 我已经覆盖了 SaveChanges 来设置它。我可以
我正在使用一个现有的数据库,并且我已经将其中一个表映射为一个实体(因为我需要映射一个外键)。 因此,在初始化此数据库时,我希望 EF 忽略此实体,因为它已经存在。 我该怎么做? 最佳答案 您应该使用
我有 3 个表需要与 Entity Framework 进行映射,但我不确定解决此问题的正确方法。这是我的 3 个实体: public class User { [Key] public
我首先使用 VS 2010 和 Entity Framework 代码(版本 6)。我有两个实体,每个实体都在自己的上下文中,我想在它们之间创建一对多关系。 上下文 1 具有以下实体: public
我知道 EF 在 CodePlex 上是开源的,但我没有看到当前发布的 5.0 版本的分支。我在哪里可以得到这个源代码? 最佳答案 没有。他们只开源了 post 5 版本。第一次签到可能足够接近,但再
我们目前有一个数据库很大的系统,存储过程既用于CUD又用于查询。数据集用于从 SP 查询中检索结果。 现在我们正在研究使用 Entity Framework 针对同一个数据库开发另一个项目。在查询数据
我有一个每 10 秒运行一次的 Windows 服务......每次运行时,它都会获取一些测试数据,对其进行修改并使用 EntityFramework 将其保存到数据库中。但是,在每一秒运行时,当我尝
我对在我们的场景中仅将 Entity Framework 与存储过程一起使用的合理性有疑问。 我们计划拥有一个 N 层架构,包括 UI、BusinessLayer (BLL)、DataAccessLa
当我使用 Entity Framework 时,我想在上下文中查询出一条记录并将其添加到具有相同架构的另一个上下文中,在查询出记录后,我将其从上下文中分离出来,但是相关实体都没有了,是吗?有什么办法解
我正在使用 Entity Framework 5 构建 ASP.Net MVC4 Web 应用程序。我必须使用现有的 sql server 数据库,但也想使用 Code First,所以我遵循了本教程
在 Entity Framework 4.0 中使用 T4 模板创建 POCO 会丢失什么?为什么使用 Entity Framework 4.0 时的默认行为不创建 POCO? 最佳答案 你会失去很多
我在网上使用 Repository Pattern 和 EF 看了很多例子。但他们都没有真正谈到与相关实体的合作。 就像说用户可以有多个地址。 IUserRepository User CreateU
我是一名优秀的程序员,十分优秀!