SQL Server地理结果格式(SQL Server geography result format)
使用SQL Server Management Studio:
declare @g geography set @g = geography::Point(-77.1851436,39.1065236,4326) select @g
回报
0xE6100000010C14C48A64D94B53C04820B990A28D4340
这个结果是什么格式? 我知道它不是STAsBinary() - 返回
0x01010000004820B990A28D434014C48A64D94B53C0
有没有办法使用C#创建0xE61 ...值?
Using SQL Server Management Studio:
declare @g geography set @g = geography::Point(-77.1851436,39.1065236,4326) select @g
returns
0xE6100000010C14C48A64D94B53C04820B990A28D4340
What format is this result? I know that it is not STAsBinary() - that returns
0x01010000004820B990A28D434014C48A64D94B53C0
Is there a way to create the 0xE61... value using C#?
原文:https://stackoverflow.com/questions/47683034
最满意答案
“聚合”是使
test
在其他项目(称为聚合项目或“执行依赖项”)以及当前项目上执行的功能的名称。 您可以在“ 多项目构建”页面上找到更多信息。我会在“主”项目中创建一个自定义任务,该任务取决于您要运行的任务。 例如,
myTestTask <<= Seq( test in (main, Test), test in (abc, Test), test in (deff, Test) ).dependOn
其中
val myTestTask = TaskKey[Unit]("my-test-task")
和main, abc, and deff
是对Projects的引用。聚合仅应用于命令行上指定的顶级任务。 因此,如果您调用
my-test-task
,那将是唯一聚合的任务(在这种情况下,它不会在任何子项目上定义,因此不会通过聚合添加任务)。 特别是,它的依赖项(明确列出的test
任务)不会被聚合。 结果是,当你调用my-test-task
时test in xyz
中的test in xyz
不会被执行。最后,请注意,您可以说
xyz/test-only
test-only
xyz
项目运行test-only
而不更改为该项目。"Aggregation" is the name of the feature that makes
test
execute on other projects (known as aggregated projects or "execution dependencies") as well as the current one. You can find more information on the Multi-Project Builds page.I would create a custom task in the "main" project that depends on the tasks you want to run. For example,
myTestTask <<= Seq( test in (main, Test), test in (abc, Test), test in (deff, Test) ).dependOn
where
val myTestTask = TaskKey[Unit]("my-test-task")
andmain, abc, and deff
are references to your Projects.Aggregation is only applied to the top-level task specified on the command line. So, if you call
my-test-task
, that will be the only task aggregated (in this case, it won't be defined on any subprojects, so no tasks get added through aggregation). In particular, its dependencies, the explicitly listedtest
tasks, don't get aggregated. The consequence is thattest in xyz
doesn't get executed when you callmy-test-task
.Finally, note that you can say
xyz/test-only
to runtest-only
for thexyz
project without changing to that project.
相关问答
更多-
因此sbt支持aggregate 。 深入细节阅读: http : //www.scala-sbt.org/0.13.5/docs/Getting-Started/Multi-Project.html#aggregation 在给定的示例中, mainProject所有命令也将在other-project上运行。 因此运行mainProject/test也会运行mainProject/test otherProject/test 。 如果mainProject是您的基础项目test就足够了。 在build. ...
-
Scala 2.10和2.11不是二进制兼容的(请参阅https://typesafe.com/blog/scala-211-has-arrived )。 因此,2.11项目不可能依赖于2.10项目。 另见SBT文档中的交叉构建 。 Scala 2.10 and 2.11 aren't binary compatible (see https://typesafe.com/blog/scala-211-has-arrived). So it isn't possible for a 2.11 project ...
-
如何让sbt在子项目specs2运行中使用正确的类加载器?(How do I get sbt to use the right classloader in subproject specs2 runs?)[2022-01-19]
这在Specs2 4.0.1中得到修复。 This is fixed in Specs2 4.0.1. -
Gradle子项目不会依赖其他子项目进行编译(Gradle subprojects won't compile with dependency on other subproject)[2022-11-11]
我认为问题出在你的settings.gradle文件中。 用以下代码替换settings.gradle文件。 rootProject.name = 'Project A' include 'SubProject B',':SubProject C',':SubProject D',':SubProject E' include ':SubProject Shared' 尝试运行'SubProjectC'的构建脚本。 希望它会奏效。 并回答你的第二个问题。 We don't need seperate s ... -
Sbt:何时使用testQuick以及它如何确定跳过哪些测试?(Sbt: when to use testQuick and how does it determine which tests to skip?)[2022-12-19]
默认情况下,它保存在target/streams/test/test/$global/streams/succeded_tests (路径可能因构建设置而异)如果您感兴趣的是它的运行选择测试究竟是如何检查testQuickFilter方法: https:// github。 COM / SBT / SBT / BLOB / fd20d3039ad06cbee47c6386dc5839060417014b /主/ src目录/主/斯卡拉/ SBT / Defaults.scala#L758 By defaul ... -
您应该定义聚合子项目的“父”项目。 有关示例,请参阅https://github.com/typesafehub/scalalogging/blob/master/project/Build.scala 。 You should define a "parent" project that aggregates the subprojects. For an example see https://github.com/typesafehub/scalalogging/blob/master/project ...
-
如何在Gradle中将其他子项目中的选定类用作测试依赖项(How to use selected classes from other subproject as test dependency in Gradle)[2022-03-18]
你会想要的东西: upstream/build.gradle : apply plugin: "java" task testJar(type: Jar) { classifier = "tests" from sourceSets.test.output exclude "**/*Test.class" } artifacts { testRuntime testJar } downstream/build.gradle : apply plugin: "java" ... -
除非在该项目中运行,否则sbt跳过子项目中的测试?(sbt skip tests in subproject unless running from within that project?)[2023-10-03]
“聚合”是使test在其他项目(称为聚合项目或“执行依赖项”)以及当前项目上执行的功能的名称。 您可以在“ 多项目构建”页面上找到更多信息。 我会在“主”项目中创建一个自定义任务,该任务取决于您要运行的任务。 例如, myTestTask <<= Seq( test in (main, Test), test in (abc, Test), test in (deff, Test) ).dependOn 其中val myTestTask = TaskKey[Unit]("my-test-tas ... -
跳过单个项目的所有测试(Skip all tests of a single project)[2023-04-18]
尝试: gradle -x :your_project_name:test Try: gradle -x :your_project_name:test -
您的错误消息显示: Compilation error[_root_ cannot be imported] 根据Scala语言规范,第9.2节 : 假设包装外的顶级定义被注入特殊的空包中。 该包无法命名,因此无法导入。 但是,空包的成员彼此可见而没有资格。 实际上,您的类Engine和ScalaPlayEngine不在一个包中( src/main/scala不算作包)。 如果你将它们移动到一个合适的包装,它应该工作。 Your error message says: Compilation error[_ ...