From 4960193073f1c3bc5048372ad13ccf8d891c2ff5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 23 May 2017 07:46:39 +0800 Subject: [PATCH] Update README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index 802e581f9..96718cb9b 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,42 @@ JoinType.Left,st.SchoolId==sc.Id .OrderBy(sc=>sc.Id,OrderByType.Desc) .Select((st, sc) => new ViewModelStudent { Name = st.Name, SchoolId = sc.Id }).ToList(); ``` + +### 1.5 SqlFunctions +```c + var t1 = db.Queryable().Where(it => NBORM.ToLower(it.Name) == NBORM.ToLower("JACK")).ToList(); + //SELECT [Id],[SchoolId],[Name],[CreateTime] FROM [Student] WHERE ((LOWER([Name])) = (LOWER(@MethodConst0)) ) + +/***More Functions***/ +//NBORM.IsNullOrEmpty(object thisValue) +//NBORM.ToLower(object thisValue) +//NBORM.string ToUpper(object thisValue) +//NBORM.string Trim(object thisValue) +//NBORM.bool Contains(string thisValue, string parameterValue) +//NBORM.ContainsArray(object[] thisValue, string parameterValue) +//NBORM.StartsWith(object thisValue, string parameterValue) +//NBORM.EndsWith(object thisValue, string parameterValue) +//NBORM.Equals(object thisValue, object parameterValue) +//NBORM.DateIsSame(DateTime date1, DateTime date2) +//NBORM.DateIsSame(DateTime date1, DateTime date2, DateType dataType) +//NBORM.DateAdd(DateTime date, int addValue, DateType millisecond) +//NBORM.DateAdd(DateTime date, int addValue) +//NBORM.DateValue(DateTime date, DateType dataType) +//NBORM.Between(object value, object start, object end) +//NBORM.ToInt32(object value) +//NBORM.ToInt64(object value) +//NBORM.ToDate(object value) +//NBORM.ToString(object value) +//NBORM.ToDecimal(object value) +//NBORM.ToGuid(object value) +//NBORM.ToDouble(object value) +//NBORM.ToBool(object value) +//NBORM.Substring(object value, int index, int length) +//NBORM.Replace(object value, string oldChar, string newChar) +//NBORM.Length(object value) { throw new NotImplementedException(); } +//NBORM.AggregateSum(object thisValue) +//NBORM.AggregateAvg(TResult thisValue) +//NBORM.AggregateMin(object thisValue) +//NBORM.AggregateMax(object thisValue) +//NBORM.AggregateCount(object thisValue) +```