|
|
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
Есть ли возможность генерить EF модели из вьюх? Я вот попытался засосать вьюху, но походу не понимает структуру вьюхи и не может сгенерить группы классов для нее. Есть идеи? Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 19:23 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
почему спрашиваю, потому что визард предлагает рассмотерть вью и процедуры и т.д. но не генерит ничего.. как, неужели вручную? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 19:40 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
процедуры нужно импортировать (дополнительно жамкнуть правой кнопкой). И с вызовом там не так всё гладко. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 19:44 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
buredИ с вызовом там не так всё гладко. имел в виду это авторNot every function mapping will become a method of the ObjectContext. Methods that return scalar values or those that send data to the database will be part of the model but not be available as a method. These can be called from Entity Client. может быть в следующих версиях поправят. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 19:47 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
bured, а как с вьюхами? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 19:59 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
блин, не работает с вьюхой.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.12.2009, 20:27 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:06.8094254. Generating model took 00:00:03.6322448. Writing out the EDMX file took 00:00:00.0533076. Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:01.9968146. Generating model took 00:00:02.1942531. Writing out the EDMX file took 00:00:00.0029121. Added the connection string to App.Config. Generated model file: Trip.edmx. Loading metadata from database took 00:00:07.1679260. Generating model took 00:00:02.6386445. Writing out the EDMX file took 00:00:00.0936926. Added the connection string to App.Config. Generated model file: Trip.edmx. Loading metadata from database took 00:00:01.8805289. Generating model took 00:00:01.0171507. Writing out the EDMX file took 00:00:00.0031210. Added the connection string to App.Config. Generated model file: Air.edmx. Loading metadata from database took 00:00:01.9933416. Generating model took 00:00:01.0393505. Writing out the EDMX file took 00:00:00.0032708. Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:01.9705990. Generating model took 00:00:02.2468933. Writing out the EDMX file took 00:00:00.0012945. Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:01.9749602. Generating model took 00:00:00.9749577. Writing out the EDMX file took 00:00:00.0012286. Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:01.9505643. Generating model took 00:00:00.9868519. Writing out the EDMX file took 00:00:00.0011590. Added the connection string to App.Config. The model was generated with warnings or errors. Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from database took 00:00:05.7844773. Generating model took 00:00:01.5589076. Writing out the EDMX file took 00:00:00.0120993. где эти ошибки смотреть интересно.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.12.2009, 03:51 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
Message 9 The table/view 'master.dbo.QUERY1' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity you will need to review your schema, add the correct keys and uncomment it. Ха, какой еще праймери у вьюхи.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.12.2009, 03:55 |
|
||
|
Модель из вьюхи
|
|||
|---|---|---|---|
|
#18+
короче понятно все... надо чтоб во вьюхе был какой либо праймери от какой либо из селектированных таблиц... завтра попробую.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.12.2009, 04:03 |
|
||
|
|

start [/forum/topic.php?fid=17&tid=1351535]: |
0ms |
get settings: |
10ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
183ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
| others: | 250ms |
| total: | 524ms |

| 0 / 0 |
