22 references to IsNullableType
System.Data.Linq (22)
Mapping\AttributedMetaModel.cs (1)
1035
this.isNullableType = TypeSystem.
IsNullableType
(this.type);
Mapping\MappedMetaModel.cs (2)
968
this.isNullableType = TypeSystem.
IsNullableType
(this.type);
1793
get { return !this.type.IsValueType || TypeSystem.
IsNullableType
(this.type); }
SqlClient\Common\TypeSystem.cs (2)
64
return !type.IsValueType ||
IsNullableType
(type);
67
if (
IsNullableType
(type)) {
SqlClient\Query\MethodCallConverter.cs (2)
97
return TypeSystem.
IsNullableType
(m.Expression.ClrType) && m.Member.Name == "Value";
101
return TypeSystem.
IsNullableType
(m.Expression.ClrType) && m.Member.Name == "HasValue";
SqlClient\Query\QueryConverter.cs (1)
822
if (TypeSystem.
IsNullableType
(qn.Type) && qn.Arguments.Count == 1 &&
SqlClient\Query\SqlBinder.cs (4)
178
if (this.IsConstNull(bo.Left) && !TypeSystem.
IsNullableType
(bo.ClrType)) {
181
else if (this.IsConstNull(bo.Right) && !TypeSystem.
IsNullableType
(bo.ClrType)) {
187
if (this.IsConstNull(bo.Left) && !TypeSystem.
IsNullableType
(bo.ClrType)) {
190
else if (this.IsConstNull(bo.Right) && !TypeSystem.
IsNullableType
(bo.ClrType)) {
SqlClient\Query\SqlMethodCallConverter.cs (2)
205
if (mc.Method.Name == "GetValueOrDefault" && TypeSystem.
IsNullableType
(mc.Object.ClrType)) {
1285
bool resultNullable = TypeSystem.
IsNullableType
(bo.ClrType);
SqlClient\Query\SqlMultiplexer.cs (1)
241
if (expr.ClrType.IsValueType && !TypeSystem.
IsNullableType
(expr.ClrType)) {
SqlClient\Reader\ObjectReaderCompiler.cs (7)
826
System.Diagnostics.Debug.Assert(TypeSystem.
IsNullableType
(u.Operand.ClrType));
842
System.Diagnostics.Debug.Assert(TypeSystem.
IsNullableType
(actualType));
917
if (mc.Object != null && TypeSystem.
IsNullableType
(mc.Object.ClrType) && callOpCode == OpCodes.Callvirt){
1437
if (clrType.IsValueType && !TypeSystem.
IsNullableType
(clrType)) {
1620
else if (TypeSystem.
IsNullableType
(expectedType) &&
1627
else if (TypeSystem.
IsNullableType
(actualType) &&
2080
if (!throwIfNotNullable || TypeSystem.
IsNullableType
(type)) {