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?
```
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?