-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using query filters for non-string types (#25)
* implement filter support for all known data types
- Loading branch information
1 parent
1a34fe9
commit fd813c7
Showing
5 changed files
with
137 additions
and
54 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
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
21 changes: 11 additions & 10 deletions
21
CoreHelpers.WindowsAzure.Storage.Table.Tests/TestEnvironments/UnittestStorageEnvironment.cs
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
using System; | ||
using CoreHelpers.WindowsAzure.Storage.Table.Tests.Contracts; | ||
using CoreHelpers.WindowsAzure.Storage.Table.Tests.Contracts; | ||
|
||
namespace CoreHelpers.WindowsAzure.Storage.Table.Tests.TestEnvironments | ||
{ | ||
public class UnittestStorageEnvironment : ITestEnvironment | ||
{ | ||
public string ConnectionString { | ||
get { | ||
|
||
{ | ||
public string ConnectionString | ||
{ | ||
get | ||
{ | ||
var connectionString = Environment.GetEnvironmentVariable("STORAGE"); | ||
if (!String.IsNullOrEmpty(connectionString)) | ||
if (!string.IsNullOrEmpty(connectionString)) | ||
{ | ||
Console.WriteLine("Using environment credentials"); | ||
return connectionString; | ||
} | ||
|
||
var filePath = Environment.ExpandEnvironmentVariables(Path.Combine("%HOME%", ".corehelpers.credentials.txt")); | ||
var filePath = Environment.ExpandEnvironmentVariables(Path.Combine( | ||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".corehelpers.credentials.txt")); | ||
Console.WriteLine("Using filesystem credentials"); | ||
|
||
return File.ReadLines(filePath).First(); | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
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
68 changes: 25 additions & 43 deletions
68
CoreHelpers.WindowsAzure.Storage.Table/Extensions/QueryFilterExtensions.cs
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