1 type derived from ProviderType
System.Data.Linq (1)
SqlClient\SqlTypeSystemProvider.cs (1)
171
public class SqlType :
ProviderType
{
177 references to ProviderType
System.Data.Linq (177)
SqlClient\Common\InheritanceRules.cs (1)
70
internal static object InheritanceCodeForClientCompare(object rawCode, System.Data.Linq.SqlClient.
ProviderType
providerType) {
SqlClient\Common\SqlFactory.cs (11)
33
internal SqlExpression ConvertTo(Type clrType,
ProviderType
sqlType, SqlExpression expr) {
288
internal SqlExpression Value(Type clrType,
ProviderType
sqlType, object value, bool isClientSpecified, Expression sourceExpression) {
334
ProviderType
sqlType = null;
363
internal SqlUnary UnaryConvert(Type targetClrType,
ProviderType
targetSqlType, SqlExpression expression, Expression sourceExpression) {
387
ProviderType
sqlType = null;
395
ProviderType
resultType = this.typeProvider.PredictTypeForBinary(nodeType, left.SqlType, right.SqlType);
489
ProviderType
sqlType = (value == null) ? this.typeProvider.From(clrType) : this.typeProvider.From(value);
538
ProviderType
sqlType = null;
569
internal SqlFunctionCall FunctionCall(Type clrType,
ProviderType
sqlType, string name, IEnumerable<SqlExpression> args, Expression source) {
577
internal
ProviderType
Default(Type clrType) {
581
internal
ProviderType
Default(MetaDataMember member) {
SqlClient\Common\SqlNode.cs (57)
167
internal abstract
ProviderType
SqlType { get; }
199
private
ProviderType
sqlType;
201
internal SqlSimpleTypeExpression(SqlNodeType nodeType, Type clrType,
ProviderType
sqlType, Expression sourceExpression)
206
internal override
ProviderType
SqlType {
210
internal void SetSqlType(
ProviderType
type) {
217
internal SqlDiscriminatorOf(SqlExpression obj, Type clrType,
ProviderType
sqlType, Expression sourceExpression)
232
private
ProviderType
sqlType;
235
internal SqlDiscriminatedType(
ProviderType
sqlType, SqlExpression discriminator, MetaType targetType, Expression sourceExpression)
245
internal override
ProviderType
SqlType {
381
private
ProviderType
sqlRowType;
384
internal SqlTable(MetaTable table, MetaType rowType,
ProviderType
sqlRowType, Expression sourceExpression)
408
internal
ProviderType
SqlRowType {
492
internal SqlUserRow(MetaType rowType,
ProviderType
sqlType, SqlUserQuery query, Expression source)
519
internal SqlUserColumn(Type clrType,
ProviderType
sqlType, SqlUserQuery query, string name, bool isRequired, Expression source)
586
internal override
ProviderType
SqlType {
612
private static
ProviderType
GetSqlType(SqlNode node) {
731
internal
ProviderType
GetSqlType() {
743
internal SqlNop(Type clrType,
ProviderType
sqlType, Expression sourceExpression)
767
internal override
ProviderType
SqlType {
875
internal SqlRowNumber(Type clrType,
ProviderType
sqlType, List<SqlOrderExpression> orderByList, Expression sourceExpression)
890
internal SqlUnary(SqlNodeType nt, Type clrType,
ProviderType
sqlType, SqlExpression expr, Expression sourceExpression)
894
internal SqlUnary(SqlNodeType nt, Type clrType,
ProviderType
sqlType, SqlExpression expr, MethodInfo method, Expression sourceExpression)
943
internal SqlBinary(SqlNodeType nt, Type clrType,
ProviderType
sqlType, SqlExpression left, SqlExpression right)
947
internal SqlBinary(SqlNodeType nt, Type clrType,
ProviderType
sqlType, SqlExpression left, SqlExpression right, MethodInfo method)
1007
internal SqlBetween(Type clrType,
ProviderType
sqlType, SqlExpression expr, SqlExpression start, SqlExpression end, Expression source)
1034
internal SqlIn(Type clrType,
ProviderType
sqlType, SqlExpression expression, IEnumerable<SqlExpression> values, Expression sourceExpression)
1059
internal SqlLike(Type clrType,
ProviderType
sqlType, SqlExpression expr, SqlExpression pattern, SqlExpression escape, Expression source)
1177
internal override
ProviderType
SqlType {
1221
internal override
ProviderType
SqlType {
1265
internal override
ProviderType
SqlType {
1318
ProviderType
sqlType;
1320
internal SqlTypeCase(Type clrType,
ProviderType
sqlType, MetaType rowType, SqlExpression discriminator, IEnumerable<SqlTypeCaseWhen> whens, Expression sourceExpression)
1347
internal override
ProviderType
SqlType {
1387
internal SqlValue(Type clrType,
ProviderType
sqlType, object value, bool isClientSpecified, Expression sourceExpression)
1406
internal SqlParameter(Type clrType,
ProviderType
sqlType, string name, Expression sourceExpression)
1429
internal SqlVariable(Type clrType,
ProviderType
sqlType, string name, Expression sourceExpression)
1445
internal SqlMember(Type clrType,
ProviderType
sqlType, SqlExpression expr, MemberInfo member)
1476
private
ProviderType
sqlType;
1478
internal SqlColumn(Type clrType,
ProviderType
sqlType, string name, MetaDataMember member, SqlExpression expr, Expression sourceExpression)
1535
internal override
ProviderType
SqlType {
1555
internal override
ProviderType
SqlType {
1628
internal SqlGrouping(Type clrType,
ProviderType
sqlType, SqlExpression key, SqlExpression group, Expression sourceExpression)
1667
internal SqlNew(MetaType metaType,
ProviderType
sqlType, ConstructorInfo cons, IEnumerable<SqlExpression> args, IEnumerable<MemberInfo> argMembers, IEnumerable<SqlMemberAssign> members, Expression sourceExpression)
1732
internal SqlMethodCall(Type clrType,
ProviderType
sqlType, MethodInfo method, SqlExpression obj, IEnumerable<SqlExpression> args, Expression sourceExpression)
1778
internal SqlClientArray(Type clrType,
ProviderType
sqlType, SqlExpression[ ] exprs, Expression sourceExpression)
1798
internal SqlLink(object id, MetaType rowType, Type clrType,
ProviderType
sqlType, SqlExpression expression, MetaDataMember member, IEnumerable<SqlExpression> keyExpressions, SqlExpression expansion, Expression sourceExpression)
1862
internal override
ProviderType
SqlType {
1870
internal SqlSubSelect(SqlNodeType nt , Type clrType,
ProviderType
sqlType , SqlSelect select)
1934
internal SqlJoinedCollection(Type clrType,
ProviderType
sqlType, SqlExpression expression, SqlExpression count, Expression sourceExpression)
2113
internal override
ProviderType
SqlType {
2153
internal SqlFunctionCall(Type clrType,
ProviderType
sqlType, string name, IEnumerable <SqlExpression > args , Expression source)
2157
internal SqlFunctionCall(SqlNodeType nodeType, Type clrType,
ProviderType
sqlType, string name , IEnumerable <SqlExpression> args , Expression source)
2180
internal SqlTableValuedFunctionCall(MetaType rowType, Type clrType,
ProviderType
sqlType, string name, IEnumerable <SqlExpression > args , Expression source)
2224
internal override
ProviderType
SqlType {
2241
internal override
ProviderType
SqlType {
2265
internal override
ProviderType
SqlType {
2273
internal SqlClientParameter(Type clrType,
ProviderType
sqlType, LambdaExpression accessor, Expression sourceExpression):
SqlClient\Common\TypeSystemProvider.cs (29)
17
internal abstract
ProviderType
PredictTypeForUnary(SqlNodeType unaryOp,
ProviderType
operandType);
19
internal abstract
ProviderType
PredictTypeForBinary(SqlNodeType binaryOp,
ProviderType
leftType,
ProviderType
rightType);
24
internal abstract
ProviderType
From(Type runtimeType);
29
internal abstract
ProviderType
From(object o);
34
internal abstract
ProviderType
From(Type type, int? size);
40
internal abstract
ProviderType
Parse(string text);
46
internal abstract
ProviderType
GetApplicationType(int index);
53
internal abstract
ProviderType
MostPreciseTypeInFamily(
ProviderType
type);
60
internal abstract
ProviderType
GetBestLargeType(
ProviderType
type);
66
internal abstract
ProviderType
GetBestType(
ProviderType
typeA,
ProviderType
typeB);
68
internal abstract
ProviderType
ReturnTypeOfFunction(SqlFunctionCall functionCall);
77
internal abstract
ProviderType
ChangeTypeFamilyTo(
ProviderType
type,
ProviderType
typeWithFamily);
79
internal abstract void InitializeParameter(
ProviderType
type, System.Data.Common.DbParameter parameter, object value);
104
internal abstract
ProviderType
GetNonUnicodeEquivalent();
132
internal abstract int ComparePrecedenceTo(
ProviderType
type);
139
internal abstract bool IsSameTypeFamily(
ProviderType
type);
239
public static bool operator ==(
ProviderType
typeA,
ProviderType
typeB) {
247
public static bool operator != (
ProviderType
typeA,
ProviderType
typeB) {
SqlClient\Query\LongTypeConverter.cs (2)
37
private SqlExpression ConvertToMax(SqlExpression expr,
ProviderType
newType) {
48
ProviderType
newType = sql.TypeProvider.GetBestLargeType(expr.SqlType);
SqlClient\Query\QueryConverter.cs (7)
758
ProviderType
sfromType = typeProvider.From(nnFromType);
759
ProviderType
stoType = typeProvider.From(nnToType);
1230
ProviderType
providerType = typeProvider.Parse(currMetaParam.DbType);
1772
ProviderType
sqlType = this.typeProvider.From(clrType);
2004
ProviderType
sqlType = function.ReturnParameter != null && !string.IsNullOrEmpty(function.ReturnParameter.DbType)
2472
ProviderType
sqlType = sql.Default(id);
2522
ProviderType
sqlType = sql.Default(id);
SqlClient\Query\SqlBinder.cs (3)
788
ProviderType
sqlType = sql.Default(mm);
803
ProviderType
sqlType = sql.Default(mm);
835
ProviderType
sqlType = sql.Default(mm);
SqlClient\Query\SqlFormatter.cs (1)
1230
private void FormatType(
ProviderType
type) {
SqlClient\Query\SqlMethodCallConverter.cs (1)
1203
ProviderType
providerType = null;
SqlClient\Query\SqlParameterizer.cs (2)
102
private
ProviderType
timeProviderType; // for special case handling of DateTime parameters
226
ProviderType
newType = this.parameterizer.typeProvider.GetBestLargeType(node.SqlType);
SqlClient\Query\SqlRetyper.cs (12)
115
ProviderType
valueType = null;
132
ProviderType
providerType = this.typeProvider.PredictTypeForBinary(SqlNodeType.EQ, test.SqlType, valueType);
160
ProviderType
type = c.Whens[0].Value.SqlType;
162
ProviderType
whenType = c.Whens[i].Value.SqlType;
166
ProviderType
elseType = c.Else.SqlType;
186
ProviderType
type = c.Whens[0].Value.SqlType;
188
ProviderType
whenType = c.Whens[i].Value.SqlType;
213
ProviderType
oldType = fc.Arguments[0].SqlType;
216
ProviderType
newType = this.typeProvider.ReturnTypeOfFunction(fc);
263
ProviderType
best = typeProvider.GetBestType(arg1.SqlType, arg2.SqlType);
279
private static void SetSqlTypeIfSimpleExpression(SqlExpression expression,
ProviderType
sqlType)
318
ProviderType
newSqlType = typeProvider.ChangeTypeFamilyTo(value.SqlType, expression.SqlType);
SqlClient\Query\SqlTypeConverter.cs (10)
20
bool StringConversionIsSafe(
ProviderType
oldSqlType,
ProviderType
newSqlType) {
32
bool StringConversionIsNeeded(
ProviderType
oldSqlType,
ProviderType
newSqlType) {
53
private bool OldWillFitInNew(
ProviderType
oldSqlType,
ProviderType
newSqlType) {
64
private bool BothTypesAreStrings(
ProviderType
oldSqlType,
ProviderType
newSqlType) {
76
ProviderType
oldSqlType = uo.Operand.SqlType;
77
ProviderType
newSqlType = uo.SqlType;
SqlClient\Reader\ObjectReaderCompiler.cs (2)
1840
private void GenerateColumnAccess(Type cType,
ProviderType
pType, int ordinal, LocalBuilder locOrdinal) {
1985
private Type GenerateDiscriminatedType(MetaType targetType, LocalBuilder locDiscriminator,
ProviderType
discriminatorType) {
SqlClient\SqlProvider.cs (1)
1341
ProviderType
pt = this.typeProvider.From(query.Type);
SqlClient\SqlTypeSystemProvider.cs (38)
38
private static
ProviderType
Create(SqlDbType type, int size) {
42
private static
ProviderType
Create(SqlDbType type, int precision, int scale) {
53
private static
ProviderType
Create(SqlDbType type) {
253
internal override
ProviderType
GetNonUnicodeEquivalent() {
321
internal override int ComparePrecedenceTo(
ProviderType
type) {
337
internal override bool IsSameTypeFamily(
ProviderType
type) {
809
internal override
ProviderType
GetApplicationType(int index) {
821
internal override
ProviderType
Parse(string stype) {
936
protected
ProviderType
GetBestType(SqlDbType targetType, int? size)
971
internal override void InitializeParameter(
ProviderType
type, DbParameter parameter, object value) {
1052
internal override
ProviderType
PredictTypeForUnary(SqlNodeType unaryOp,
ProviderType
operandType) {
1089
internal override
ProviderType
PredictTypeForBinary(SqlNodeType binaryOp,
ProviderType
leftType,
ProviderType
rightType) {
1117
ProviderType
concatType = this.GetBestType(highest.SqlDbType, null);
1150
internal override
ProviderType
MostPreciseTypeInFamily(
ProviderType
type) {
1177
private
ProviderType
[] GetArgumentTypes(SqlFunctionCall fc) {
1178
ProviderType
[] array = new
ProviderType
[fc.Arguments.Count];
1193
internal override
ProviderType
ReturnTypeOfFunction(SqlFunctionCall functionCall) {
1292
internal override
ProviderType
ChangeTypeFamilyTo(
ProviderType
type,
ProviderType
toType) {
1320
internal override
ProviderType
GetBestType(
ProviderType
typeA,
ProviderType
typeB) {
1374
internal override
ProviderType
From(object o) {
1399
internal override
ProviderType
From(Type type)
1404
internal override
ProviderType
From(Type type, int? size) {
1413
internal override
ProviderType
From(Type type, int? size) {
1465
internal override
ProviderType
GetBestLargeType(
ProviderType
type) {
1514
internal override
ProviderType
From(Type type, int? size)
1533
internal override
ProviderType
From(Type type, int? size) {
1585
internal override
ProviderType
GetBestLargeType(
ProviderType
type) {