forked from JasperFx/marten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ST harness and one passing test for querying by integer
- Loading branch information
1 parent
d89cb54
commit 09fb992
Showing
11 changed files
with
123 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,3 +198,5 @@ FakesAssemblies/ | |
|
||
# Visual Studio 6 workspace options file | ||
*.opt | ||
|
||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/Marten.Testing/Specs/Linq Queries/Basic_comparisons_on_a_single_property.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Spec id="deb452b4-e9ce-49d9-ab54-77868463162c" maxRetries="0" tags="" lifecycle="Regression" name="Basic comparisons on a single property" lastUpdated="Tuesday, October 20, 2015" expirationPeriod="0"> | ||
<Linq id="2124a9c3-d8eb-444b-b94f-4c572b62545f"> | ||
<TheDocumentsAre> | ||
<Rows id="cbbb10d5-daac-4b27-99ef-386a029dd2fe"> | ||
<TheDocumentsAre-row Name="A" Number="1" /> | ||
<TheDocumentsAre-row Name="B" Number="2" /> | ||
<TheDocumentsAre-row Name="C" Number="3" /> | ||
<TheDocumentsAre-row Name="D" Number="4" /> | ||
<TheDocumentsAre-row Name="E" Number="5" /> | ||
<TheDocumentsAre-row Name="F" Number="6" /> | ||
</Rows> | ||
</TheDocumentsAre> | ||
<ExecutingQuery> | ||
<table id="724c8058-0089-4510-9f5c-bff8ff85b720"> | ||
<ExecutingQuery-row WhereClause="x.Number == 1" Sql="select data from mt_doc_Target where data ->> 'Number' = :arg0" Results="A" /> | ||
</table> | ||
</ExecutingQuery> | ||
</Linq> | ||
</Spec> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Reflection; | ||
using FubuCore; | ||
|
||
namespace Marten.Util | ||
{ | ||
public static class MemberInfoExtensions | ||
{ | ||
public static Type GetMemberType(this MemberInfo member) | ||
{ | ||
if (member is FieldInfo) return member.As<FieldInfo>().FieldType; | ||
if (member is PropertyInfo) return member.As<PropertyInfo>().PropertyType; | ||
|
||
throw new NotSupportedException(); | ||
} | ||
} | ||
} |