MySql.Data.Entity.Tests.CanonicalFunctions.Substring C# (CSharp) Method

Substring() private method

private Substring ( ) : void
return void
    public void Substring()
    {
      using (testEntities context = new testEntities())
      {
        ObjectQuery<string> query = context.CreateQuery<string>("SUBSTRING('foobarfoo',4,3)");
        query = context.CreateQuery<string>("SUBSTRING('foobarfoo',4,30)");
        foreach (string s in query)
          Assert.AreEqual("barfoo", s);
      }
    }