public void ProperVarcharLengthForConstantTest() { Database.SetInitializer <ProperVarcharLengthForConstantContext>(null); Connection.Close(); using (var c = new ProperVarcharLengthForConstantContext(Connection)) { var q = c.Bars.Where(x => x.BarString == "TEST"); StringAssert.Contains("CAST(_UTF8'TEST' AS VARCHAR(8191))", q.ToString()); } }
public void ProperVarcharLengthForConstantTest() { Database.SetInitializer<ProperVarcharLengthForConstantContext>(null); Connection.Close(); using (var c = new ProperVarcharLengthForConstantContext(Connection)) { var q = c.Bars.Where(x => x.BarString == "TEST"); StringAssert.Contains("CAST(_UTF8'TEST' AS VARCHAR(8191))", q.ToString()); } }