1 #region MIT license 2 // 3 // MIT license 4 // 5 // Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne 6 // 7 // Permission is hereby granted, free of charge, to any person obtaining a copy 8 // of this software and associated documentation files (the "Software"), to deal 9 // in the Software without restriction, including without limitation the rights 10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 // copies of the Software, and to permit persons to whom the Software is 12 // furnished to do so, subject to the following conditions: 13 // 14 // The above copyright notice and this permission notice shall be included in 15 // all copies or substantial portions of the Software. 16 // 17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 // THE SOFTWARE. 24 // 25 #endregion 26 27 namespace DbLinq.Data.Linq.Sugar.Expressions 28 { 29 /// <summary> 30 /// SQL specific (and DBlinq required) custom expression types. 31 /// To add a new value here, please be sure to handle it everywhere 32 /// For this, search for "// SETuse" comment in project 33 /// </summary> 34 #if !MONO_STRICT 35 public 36 #endif 37 enum SpecialExpressionType 38 { 39 IsNull = 100, 40 IsNotNull, 41 Concat, 42 Count, 43 Exists, 44 Like, 45 Min, 46 Max, 47 Sum, 48 Average, 49 StringLength, 50 ToUpper, 51 ToLower, 52 In, 53 Substring, 54 Trim, 55 LTrim, 56 RTrim, 57 58 StringInsert, 59 Replace, 60 Remove, 61 IndexOf, 62 63 Year, 64 Month, 65 Day, 66 Hour, 67 Minute, 68 Second, 69 Millisecond, 70 Now, 71 Date, 72 DateDiffInMilliseconds, 73 74 Abs, 75 Exp, 76 Floor, 77 Ln, 78 Log, 79 Pow, 80 Round, 81 Sign, 82 Sqrt 83 } 84 }