I have Demo solution with two projects like this :
I have installed T4Scaffolding
.Install-Package T4Scaffolding
I have added a reference of AdventureWorksModel
to my RepoLayer
Project and install EF6 .
Now when i try to run the following command :
scaffold repository AdventureWorksModel.Customer
to my RepoLayer
Project
I get the following exception :
Get-ProjectType : Cannot find a type matching the name
'AdventureWorksModel.Customer'. Try specifying the fully-qualified
type name, including namespace.`
although the same command works successfully when i run it on AdventureWorksModel
project !
Here is the steps which you need to do
Update related to EDMX name from above screen shot The command
scaffold repository AdvwrksModel.Customer
gives us important thought "AdvwrksModel" is EDMX name and namespace should be "AdvwrksModel". Then it will work fine.
From code link provided; After building, it gave same error what you mentioned in question, then after investigation it was namespace issue. Attaching screenshot with points 1, 2, 3, 4 should be "SledModel" i.e. EDMX name. Point 5 is generated repository for Race
I guess this will solve your problem. I am not sure how the namespace was different then EDMX name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With