c# - Linq to SQL Associated Table Not Accessible -
i reworking application had working code in it. necessity, i'm moving several commonly-used bits separate project. 1 of linq sql model. i have references resolved , namespaces corrected compiles correctly except couple of areas code using mapping association access different table. so example, template t = db.templates.firstordefault( f => f.templateid == templateid ); list<item> templatelist = new list<item>( ); foreach ( var r in globalitems ) { if (t.templatechildren.firstordefault( f => f.itemid == r.itemid ) != null ) // stuff... } in instance, cannot access t..templatechildren. compiler tells me inaccessible due protection level. taking @ linq sql designer code, find problem: [global::system.data.linq.mapping.associationattribute(name="template_templatechildren", storage="_templatechildren", thiskey="templateid", otherkey="templateid")] internal ent...