Select of string value bombs out #159

ssteiner opened this Issue Feb 12, 2013 · 0 comments


None yet

1 participant


My Data Model

public class FrameworkUserConfiguration
//used to store object in sqlite database

    public Guid FrameworkUserUid { get; set; }
    public byte[] Picture { get; set; }
    public DateTime LastUpdate { get; set; }
    public FrameworkUserDataType Type { get; set; }
    public string Description { get; set; }
    public string AudioFile { get; set; }
    public bool? RepeatAudio { get; set; }
    public bool ContainsPicture { get; set; }

    public string Identifier
            return FrameworkUserUid.ToString() + "-" + Type;


public enum FrameworkUserDataType

A simple select bombs out telling me there's no parameterless constructor (after filling the table with some random data entries)

List guids = conn.Table().Select(x => x.Identifier).ToList();

At first glance this appears to be an issue because public IEnumerator GetEnumerator () is called for T being System.String - so it then creates a dummy table mapping and once we get to
var obj = Activator.CreateInstance(map.MappedType); things go wrong because System.String has no parameterless constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment