internal static bool IsGetterAccessValid(SmiMetaData metaData, SmiXetterTypeCode xetterType)
        {
            // Make sure no-one adds a new xetter type without updating this file!
            Debug.Assert(SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType);

            return(__isGetterAccessValid[(int)metaData.SqlDbType, (int)xetterType]);
        }
示例#2
0
 internal static bool IsSetterAccessValid(SmiMetaData metaData, SmiXetterTypeCode xetterType)
 {
     return(__isSetterAccessValid[(int)metaData.SqlDbType, (int)xetterType]);
 }
 internal static bool IsSetterAccessValid(SmiMetaData metaData, SmiXetterTypeCode xetterType)
 {
     return __isSetterAccessValid[(int) metaData.SqlDbType, (int) xetterType];
 }
示例#4
0
        internal static bool IsSetterAccessValid(SmiMetaData metaData, SmiXetterTypeCode xetterType)
        {
            // Make sure no-one adds a new xetter type without updating this file!
            Debug.Assert(SmiXetterTypeCode.XetBoolean <= xetterType && SmiXetterTypeCode.XetDateTimeOffset >= xetterType &&
                    SmiXetterTypeCode.GetVariantMetaData != xetterType);

            return s_isSetterAccessValid[(int)metaData.SqlDbType, (int)xetterType];
        }