Add SQLite to class contains List<> item

My sample class like:

Class Item
{
[PrimaryKey]
public string ID{get;set;}
public string Name{get;set;}
.
.
.
public List ParentIDs{get; set;}
}

When I try to insert DB to item with conn.Insert(m_item) System.NotSupportedException: Don't know about System.Collections.Generic.List error occurs.

Are there any way to insert object without wapper objects and, non-requred creating extra tables?

Posts

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    Not exactly sure about what you are trying to do but I think there are two options left:

    a) use a OR-Mapper

    b) write plain SQL to save your objects.

Sign In or Register to comment.