This question is locked. New answers and comments are not allowed.
Hi
Got a bit of a problem designing my model using Database First with Flat Inheritance. I got a sql view called Trade and it has the following properties:
TradeId
AccountId
CptyId
BuyCcyId
BuyCcyId2
BuyQuantiy1
BuyQuantity2
EffectiveDate
CDSSpread
RepoRate
I have created an entity called "Trade" which maps to this view and then created the following entities that inherit from the Trade entity. Their respective properties are in brackets
Trade - (TradeId, AccountId, CptyId)
TradeFx - (BuyCcyId, BuyCcyId2, BuyQuantiy1, BuyQuantity2)
TradeInvestment - (EffectiveDate, CDSSpread)
TradeRepo - (RepoRate)
I've mapped the above properties to the Trade view in the Mapping Details Editor.
I've tried to follow the procedure outlined in this link http://www.telerik.com/help/openaccess-orm/openaccess-tasks-define-model-inheritance-flat-mapping.html, however I can NOT complete step 17 as "Use default mapping" is greyed out. I compiled the code and get the following error:
Error 1 The derived persistent type 'Tradar.Data.TradeStockLoan' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0
Error 2 The derived persistent type 'Tradar.Data.TradeRepo' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0
Can anyone shed any light on what I'm doing wrong or what this error means?
Regards Nikesh
Got a bit of a problem designing my model using Database First with Flat Inheritance. I got a sql view called Trade and it has the following properties:
TradeId
AccountId
CptyId
BuyCcyId
BuyCcyId2
BuyQuantiy1
BuyQuantity2
EffectiveDate
CDSSpread
RepoRate
I have created an entity called "Trade" which maps to this view and then created the following entities that inherit from the Trade entity. Their respective properties are in brackets
Trade - (TradeId, AccountId, CptyId)
TradeFx - (BuyCcyId, BuyCcyId2, BuyQuantiy1, BuyQuantity2)
TradeInvestment - (EffectiveDate, CDSSpread)
TradeRepo - (RepoRate)
I've mapped the above properties to the Trade view in the Mapping Details Editor.
I've tried to follow the procedure outlined in this link http://www.telerik.com/help/openaccess-orm/openaccess-tasks-define-model-inheritance-flat-mapping.html, however I can NOT complete step 17 as "Use default mapping" is greyed out. I compiled the code and get the following error:
Error 1 The derived persistent type 'Tradar.Data.TradeStockLoan' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0
Error 2 The derived persistent type 'Tradar.Data.TradeRepo' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0
Error 3 The derived persistent type 'Tradar.Data.TradeTransfer' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0
Error 4 The derived persistent type 'Tradar.Data.TradeFx' is part of a flat inheritance hierarchy but contains properties mapped to not-nullable columns. C:\BackOfficeRepos\TradarBE\DataAPI\Data Service\Tradar.Data\DataAPIv2\TradarDiagrams.rlinq 0 0