in ado.net information services i check an entity already context?


i have an ado.net information use i am controlling information import. there array entities related many entities. during import i emanate those entities first, save following .setlink(entityimport, "navigationproperty", createdentity). initial emanate i ran context always know createdentity (this due any entities being alien exclusively origination context any vigilant combined - i'd keep functionality - i.e. i'm perplexing prevaricate "just context" answer).



so i have .addtocreatedentitytype(createdentity) before attempting setlink. impetus works initial time, nonetheless second pass i blunder summary "the context already tracking entity".



is there proceed check context already tracking entity (context.contains(createdentity) isn't nonetheless implemented)? i pondering attempting try locate only avoiding error, nonetheless seems emanate new createdentity any pass. looking i need linq information services createdentity any time, nonetheless seems innefficient - any suggestions?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members