Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module Throws Error after Upgrade to 7.xCustom Module Throws Error after Upgrade to 7.x
Previous
 
Next
New Post
3/4/2014 11:31 PM
 

After a bit of back and forth on this module, I'm still seeing issues.  The latest is that when I take the module source code (it came without a .sln) and use the source to create a new solution based on the module template in VS 2013, I receive errors like:

The type 'ModuleName.Data.TaskType' already contains a definition for 'TaskTypeId' based on TaskType.cs which is defined as:

using System;

    using System.Collections.Generic;

    

    public partial class TaskType

    {

        public int TaskTypeId { get; set; }

        public string TaskTypeName { get; set; }

        public string IconImage { get; set; }

        public int SortOrder { get; set; }

        public string TypeCategory { get; set; }

    }

Note that this class is in my solution's Data folder and below the AdminTasks.edmx.  Is this error being thrown because the class file is redundant with the Entity Data model?  Note that when I validate the edmx, the above error and others about which I've posted separately are referenced.

Is the entity data model being used correctly in this case?  If not, what approach is suggested, given Cathal's comment about the database core tables changing from release to release?

Thanks for nudging me along on this one:)


 
New Post
3/5/2014 2:51 AM
 
This thread continually refers to a missing sln. Is that really your problem? What I am hearing sounds like a missing csproj file or files.

sln is basically trivial. It's a list of projects and not much else, and it rarely manages files. csproj/vbproj etc files contain all the action of project settings and the list of files that belong to a project.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/5/2014 2:59 AM
 
>>The type 'ModuleName.Data.TaskType' already contains a definition for 'TaskTypeId' based on TaskType.cs

Well the message is pretty clear. TaskType defines TaskTypeId more than once.

The code quoted is a partial class - that simply means that the total definition of the class has to be accumulated from lots of (almost invariably two) different files. I'd bet one of them was generated from the edmx the other is probably in the handwritten code somewhere. I can't tell if the code you quote is hand generated or edmx generated.

It's the compiler's job to find all the parts of a partial class and use the composite to generate code or, in this case, messages. In tracking down the problem you have to do the same.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
3/5/2014 3:03 AM
 
Similarly...

>>Error 1 Type 'Find8.DNN.DiplomateManager.Data.AdminTaskEntities' already defines a member called 'AdminTaskEntities' with the same parameter types C:\dnndev.me\DesktopModules\Find8\Find8Diplomate\Find8Diplomate\Data\AdminTaskEfModel1.Designer.cs 40 16 Find8Diplomate

...Says that type has two constructors that cannot be distinguished by their parameter lists.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module Throws Error after Upgrade to 7.xCustom Module Throws Error after Upgrade to 7.x


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out