Search found 22 matches

by Q.X
Wed 03 Apr 2019 01:12
Forum: Entity Framework support
Topic: How to create many to many relation in EF Core
Replies: 3
Views: 3923

Re: How to create many to many relation in EF Core

Shalex wrote: Fri 29 Mar 2019 17:46 Many-to-many relationships without an explicitly mapped join table are not supported.

Please refer to:
* https://docs.microsoft.com/en-us/ef/cor ... p-patterns > the "Many-to-many" section
* https://blog.oneunicorn.com/tag/many-to-many/
oh, thx a lot
by Q.X
Thu 28 Sep 2017 12:35
Forum: Entity Framework support
Topic: generate code only without mapping to storage
Replies: 3
Views: 1698

Re: generate code only without mapping to storage

Shalex wrote:Please set Generate Partial Class=True in properties of your template in the model. Then implement a new property in a partial class manually.
but I want the filed could be found in the model designer...
I want the feature that not to generate the csdl,msdl,ssdl,msl.., generate .net code only and shown on the designer too.
by Q.X
Wed 27 Sep 2017 14:01
Forum: Entity Framework support
Topic: generate code only without mapping to storage
Replies: 3
Views: 1698

generate code only without mapping to storage

I want a filed in entity to generate code only , not mapping to the storage db,
may I do this?
by Q.X
Sat 19 Aug 2017 05:21
Forum: Entity Framework support
Topic: draw the model without generating code
Replies: 3
Views: 3251

Re: draw the model without generating code

Shalex wrote:You want to work with EF6 model without generating *.csdl / *.msl / *.ssdl, don't you?

Please enable the DbContext template in your *.edml model via Model Explorer > the Templates node and set its Fluent Mapping property to True. Also select designer surface, press F4 (Properties) and set Metadata Artifact Processing to Do Not Generate Mapping Files.

Refer to http://blog.devart.com/entity-developer ... plate.html.

Is that what you need?
Yes, but I just want not to generate the entities which I taged
by Q.X
Mon 14 Aug 2017 14:43
Forum: Entity Framework support
Topic: draw the model without generating code
Replies: 3
Views: 3251

draw the model without generating code

Such as drawing a one-to-many relationship on the desinger model without generating code in EF(include csdl,msdl and ssdl)

yes, only show on the model and generate the code in cs with template (without ef csdl ssdl msdl)
by Q.X
Sat 05 Aug 2017 16:04
Forum: Entity Framework support
Topic: how to deploy it with msbuild
Replies: 1
Views: 2794

how to deploy it with msbuild

i use jenkins with msbuild,but how to generate the devart resource use command line

i use visual studio build tool 2017
by Q.X
Fri 04 Aug 2017 03:46
Forum: Entity Framework support
Topic: template: the filename for generation result output is not defined.
Replies: 1
Views: 2405

template: the filename for generation result output is not defined.

// Custom tool 'DevartEfGenerator' failed.
// - The following error has occurred when attempting to save the results provided by the generation template: the filename for generation result output is not defined.
by Q.X
Tue 18 Jul 2017 01:26
Forum: Entity Developer
Topic: extend property on association can not be saved
Replies: 3
Views: 3340

Re: extend property on association can not be saved

Shalex wrote:The bug with serializing user defined extended properties for associations is fixed: viewtopic.php?f=32&t=35671.
yeah!
by Q.X
Thu 29 Jun 2017 03:12
Forum: Entity Developer
Topic: extend property on association can not be saved
Replies: 3
Views: 3340

extend property on association can not be saved

for entity framework
in tmpl add row:
<#@ extended name="AutoGen" owner="Association" type="System.Boolean" default="True" category="Code Generation" description="something" #>

I set property to false then close the model
but the setting is reset to true after reopening the model
by Q.X
Wed 28 Jun 2017 14:15
Forum: Entity Developer
Topic: a model without mapping some fileds
Replies: 1
Views: 1366

a model without mapping some fileds

I have a model like
[order], with fields a,b,c mapping to the table [tbl_order] with fileds a,b
I don't want to mapping filed c
how to do this?
it seems i must mapping model fields wiht table one by one
by Q.X
Wed 28 Jun 2017 14:10
Forum: Entity Developer
Topic: entity set type inerhit from base?
Replies: 2
Views: 1914

Re: entity set type inerhit from base?

Pinturiccio wrote:Yes, EntitySet is created for the root class of a hierarchy.
A query to a descendant class looks like the following:

Code: Select all

var context = new MyContext();
var query = context.ListOrders.OfType<listItktOrder>();
thx
by Q.X
Thu 22 Jun 2017 08:25
Forum: Entity Developer
Topic: entity set type inerhit from base?
Replies: 2
Views: 1914

entity set type inerhit from base?

entity framework

base class is: listOrder
derived class is:listItktOrder
type: TPT

why the class "listItktOrder" entity set is not listItktOrders but ListOrders?
by Q.X
Tue 19 Feb 2013 12:59
Forum: Entity Developer
Topic: many to many relation
Replies: 1
Views: 1033

many to many relation

how to set inverse=false both side in many to many relation?
by Q.X
Fri 08 Feb 2013 01:30
Forum: Entity Developer
Topic: about enum in complex type
Replies: 4
Views: 1109

Re: about enum in complex type

Shalex wrote:New build of Entity Developer 5.0.43 is available!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=25825.
thxs