Пример #1
0
 public ParameterModel Byte(
     byte?defaultValue      = null,
     string defaultValueSql = null,
     string name            = null,
     string storeType       = null,
     bool outParameter      = false)
 {
     return(ParameterBuilder.BuildParameter(PrimitiveTypeKind.Byte, (object)defaultValue, defaultValueSql, new int?(), new byte?(), new byte?(), new bool?(), new bool?(), name, storeType, outParameter));
 }
Пример #2
0
 public ParameterModel DateTimeOffset(
     byte?precision = null,
     DateTimeOffset?defaultValue = null,
     string defaultValueSql      = null,
     string name       = null,
     string storeType  = null,
     bool outParameter = false)
 {
     return(ParameterBuilder.BuildParameter(PrimitiveTypeKind.DateTimeOffset, (object)defaultValue, defaultValueSql, new int?(), precision, new byte?(), new bool?(), new bool?(), name, storeType, outParameter));
 }
Пример #3
0
 public ParameterModel Binary(
     int?maxLength          = null,
     bool?fixedLength       = null,
     byte[] defaultValue    = null,
     string defaultValueSql = null,
     string name            = null,
     string storeType       = null,
     bool outParameter      = false)
 {
     return(ParameterBuilder.BuildParameter(PrimitiveTypeKind.Binary, (object)defaultValue, defaultValueSql, maxLength, new byte?(), new byte?(), new bool?(), fixedLength, name, storeType, outParameter));
 }
Пример #4
0
 public ParameterModel Decimal(
     byte?precision         = null,
     byte?scale             = null,
     Decimal?defaultValue   = null,
     string defaultValueSql = null,
     string name            = null,
     string storeType       = null,
     bool outParameter      = false)
 {
     return(ParameterBuilder.BuildParameter(PrimitiveTypeKind.Decimal, (object)defaultValue, defaultValueSql, new int?(), precision, scale, new bool?(), new bool?(), name, storeType, outParameter));
 }
Пример #5
0
        public ParameterModel String(
            int?maxLength          = null,
            bool?fixedLength       = null,
            bool?unicode           = null,
            string defaultValue    = null,
            string defaultValueSql = null,
            string name            = null,
            string storeType       = null,
            bool outParameter      = false)
        {
            string str = defaultValue;
            string defaultValueSql1 = defaultValueSql;
            int?   maxLength1       = maxLength;
            bool?  nullable         = fixedLength;
            byte?  precision        = new byte?();
            byte?  scale            = new byte?();
            bool?  unicode1         = unicode;
            bool?  fixedLength1     = nullable;
            string name1            = name;
            string storeType1       = storeType;
            int    num = outParameter ? 1 : 0;

            return(ParameterBuilder.BuildParameter(PrimitiveTypeKind.String, (object)str, defaultValueSql1, maxLength1, precision, scale, unicode1, fixedLength1, name1, storeType1, num != 0));
        }