コード例 #1
0
ファイル: LBParameter.cs プロジェクト: BsJia/WeightManager
 public LBParameter(string parameterName, enLBDbType dbtype, object value, bool output)
 {
     ParameterName = parameterName;
     LBDBType      = dbtype;
     Direction     = ParameterDirection.InputOutput;
     Value         = value;
 }
コード例 #2
0
ファイル: LBDbType.cs プロジェクト: BsJia/WeightManager
        public static Type GetSqlDbType(enLBDbType dbType)
        {
            switch (dbType)
            {
            case enLBDbType.String:
                return(typeof(string));

            case enLBDbType.Date:
                return(typeof(DateTime));

            case enLBDbType.DateTime:
                return(typeof(DateTime));

            case enLBDbType.Double:
                return(typeof(double));

            case enLBDbType.Decimal:
                return(typeof(decimal));

            case enLBDbType.Int16:
                return(typeof(Int16));

            case enLBDbType.Int32:
                return(typeof(Int32));

            case enLBDbType.Int64:
                return(typeof(Int64));

            case enLBDbType.Byte:
                return(typeof(byte));

            case enLBDbType.Boolean:
                return(typeof(bool));

            case enLBDbType.Object:
                return(typeof(object));

            case enLBDbType.NText:
                return(typeof(string));

            case enLBDbType.Binary:
                return(typeof(Int16));

            case enLBDbType.Bytes:
                return(typeof(byte[]));

            default:
                return(typeof(string));
            }
        }