.net - Attributes in external assembly -


i using sqlite-net . uses attribute [ignore] skip field during serialization.

i have class property:

[ignore] public observablecollection<myentity> myentities { get; set; } 

it works fine when create table:

_connection.createtableacync<myclass>().wait(); 

now move class external assembly (project) , have error when sqlite-net trying create table. error messages said there unknown type observablecollection. looks [ignore] attribute doesn't work if class in external assembly (project).

i trying debug sqlite-net code. here the fragment:

var ignore = p.getcustomattributes (typeof(ignoreattribute), true).count() > 0;  if (p.canwrite && !ignore) {    cols.add (new column (p, createflags)); } 

i have ignore == false field [ignore] attribute.

i newbie in .net not sure in case.

are attributes working classes in external assemblies (project)? if are, error in sqlite-net ?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -