internal static Expression Emit_Conditional_NotDBNull( Expression result, int ordinal, Type columnType) { result = (Expression) Expression.Condition(CodeGenEmitter.Emit_Reader_IsDBNull(ordinal), (Expression) Expression.Constant(TypeSystem.GetDefaultValue(columnType), columnType), result); return result; }
internal static Expression Emit_Reader_IsDBNull(ColumnMap columnMap) { return CodeGenEmitter.Emit_Reader_IsDBNull(((ScalarColumnMap) columnMap).ColumnPos); }
internal static Expression Emit_EntityKey_HasValue(SimpleColumnMap[] keyColumns) { return (Expression) Expression.Not(CodeGenEmitter.Emit_Reader_IsDBNull((ColumnMap) keyColumns[0])); }