Entity Framework compiling error

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

Error    67    Error 3026: Problem in Mapping Fragment(s) starting at line(s) (982, 1103, 1112, 1121, 1129): Data loss or key constraint violation is possible in table TAggregationEvent.
The following C-side state is not preserved upon retrieving persisted data from the store. An Entity instance e with Key (k) such that:
  ((k) plays role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TBusinessLocation1' AND ((k) does NOT play role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TBusinessLocation' OR (k) is NOT in 'TAggregationEvent' Entity Set OR (k) does NOT play role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TEPCISEvent'))
    D:\Tfs\hyperion\DaenetProjects\RFID\Daenet.Epcis\Daenet.EpcisService\EntityModel.edmx    1113    11    Daenet.EpcisService

 

Error    68    Error 3012: Problem in Mapping Fragment(s) starting at line(s) (982, 1103, 1112, 1121, 1129): Data loss is possible in FK_TAggregationEvent_TBusinessLocation1.TBusinessLocation.ID.
The following C-side state is not preserved upon retrieving persisted data from the store. An Entity instance e with Key (k) such that:
  (e.TBusinessLocation.ID is not NULL AND ((k) does NOT play role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TBusinessLocation' OR (k) is NOT in 'TAggregationEvent' Entity Set OR (k) does NOT play role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TEPCISEvent') AND (k) plays role 'TAggregationEvent' in Association Set 'FK_TAggregationEvent_TBusinessLocation1')
    D:\Tfs\hyperion\DaenetProjects\RFID\Daenet.Epcis\Daenet.EpcisService\EntityModel.edmx    1104    11    Daenet.EpcisService

 

Error    69    'EpcisDbModel.TAggregationEvent' does not contain a definition for 'BusinessLocationID' and no extension method 'BusinessLocationID' accepting a first argument of type 'EpcisDbModel.TAggregationEvent' could be found (are you missing a using directive or an assembly reference?)    D:\Tfs\hyperion\DaenetProjects\RFID\Daenet.Epcis\Daenet.EpcisService\EpcisService.cs    35    24    Daenet.EpcisService

 

 

image


Posted Aug 10 2008, 12:40 PM by Damir Dobric
Filed under:
developers.de is a .Net Community Blog powered by daenet GmbH.