Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Closed Unassigned: Model is not generated for a complex view [112]

$
0
0
I have a view with the following code:

```
create view [dbo].[SiriusV_LicensesCount]
as
with cteLicenses as (
select sum(case when sp.is_test = 0 and sp.mode <> 9 then cast(sp.is_access as int) else 0 end) as AccessWare -- Not kiosk
, sum(case when sp.is_test = 0 then cast(sp.is_adv_inv as int) else 0 end) as AdvInventory
, sum( cast(sp.is_test as int)) as Test
from dbo.sales_pt sp where sp.hidden = 0)
select LicenseType, [Count]
from cteLicenses unpivot ([Count] for LicenseType in
(AccessWare, Test)
) unpvt
```

I removed some columns here for brevity. I found that the model class is not being created at all.

Do you know what is wrong - is it because all columns are calculated?

Viewing all articles
Browse latest Browse all 1642

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>