[Mono-bugs] [Bug 585778] New: System.Data.Linq.Mapping.ColumnAttribute.CanBeNull default value is False

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 5 06:16:18 EST 2010



           Summary: System.Data.Linq.Mapping.ColumnAttribute.CanBeNull
                    default value is False
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0;
Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729;
NET CLR 3.0.30729)

System.Data.Linq.Mapping.ColumnAttribute.CanBeNull default value is False
Bugzilla component list does not contain Sys.Data.Linq assembly.

Reproducible: Always

Steps to Reproduce:
Run code below

using System;
using System.Data.Linq.Mapping;
using System.Reflection;

public class Kontekst
    public DateTime? Akuupaev { get; set; }

class Program
    static void Main()
        const BindingFlags FLAGS = BindingFlags.Instance | 
BindingFlags.Public | BindingFlags.NonPublic;
        const MemberTypes PROP_FIELD = MemberTypes.Property | 
        Type type = typeof(Kontekst);
        foreach (MemberInfo member in type.GetMembers(FLAGS))
            if ((member.MemberType & PROP_FIELD) == 0) continue;
            ColumnAttribute col = Attribute.GetCustomAttribute(member, 
typeof(ColumnAttribute)) as ColumnAttribute;
            if (col == null) continue;
            Console.WriteLine("canbenull=={0}", col.CanBeNull);

Actual Results:  

Expected Results:  

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list