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
terms = terms.Replace("-", " "); // e.g, "Berwick-upon-Tweed" => "Berwick upon Tweed" | |
terms = terms.ToAlphanumericOrWhitespace(); // remove all other apostrophes etc | |
List<string> parts = null; | |
var sb = new StringBuilder(); | |
bool haveAppendedWord = false; | |
IEnumerable<string> TermsSplitBySpace = terms.SplitByDelimiter(' '); | |
if (TermsSplitBySpace != null) | |
{ | |
parts = TermsSplitBySpace.ToList(); |
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
public class Context : IContext | |
{ | |
public readonly ServiceEntities _entities; | |
#region Constructor | |
public Context() | |
{ | |
_entities = new ServiceEntities(); | |
} |
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
public class Context : IContext | |
{ | |
public readonly ServiceEntities _entities; | |
#region Constructor | |
public Context() | |
{ | |
_entities = new ServiceEntities(); | |
} |