I am trying to do a simple-to-one relationship in EF and have defined it: < / P> and the console is initially calling it in the following ways: The following will generate the following SQL query: Now my question is, why take the dealer defined in the car type and Specify clear mapping for this property using either. Type car () = [& lt; DefaultValue & gt;] Vel Temporary Private ID: IT member x.ID get () = x.id and set (V) = x.id
let's ctx = new MyContext () query.query < @ Seq {in ctx for x. Do the taxes if x.CarName = "Volvo" then yield x.Dealer.Name} @ & gt;
SELECT [Extent2]. [Name] AS [Name] FROM [dbo]. [Car] [Extent 1] Join the upper part [DBO]. [Dealer] AS [Extent 2] O [Extent 1]. [Dealer_id] = [ext2]. [ID] where N Volvo '[[Extent 1]. [Credit]
dealer id instead of
dealer id
Comments
Post a Comment