Syncobj0x3342354238413437TypedView.cs

Posts   
 
    
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 21-Aug-2010 23:13:11   

Llblgen V3.0, LlblGen Runtime, Adapter

While checking my generated code into source control, I found many source files named similarly to the subject line. When opening one I see code like:


///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 3.0
// Code is generated on: Sunday, July 25, 2010 10:47:53 AM
// Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Data;
using System.Collections;
using System.Collections.Specialized;
#if !CF
using System.Runtime.Serialization;
#endif
using Cgm.CdgOperations;
using Cgm.CdgOperations.FactoryClasses;
using Cgm.CdgOperations.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Cgm.CdgOperations.TypedViewClasses
{
    // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
    // __LLBLGENPRO_USER_CODE_REGION_END
    
    
    /// <summary>Typed datatable for the view 'Syncobj0x3343424239394536'.<br/><br/></summary>
#if !CF
    [Serializable, System.ComponentModel.DesignerCategory("Code")]
    [ToolboxItem(true)]
    [DesignTimeVisible(true)]
#endif
    public partial class Syncobj0x3343424239394536TypedView : TypedViewBase<Syncobj0x3343424239394536Row>, ITypedView2
        // __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfacesView
        // __LLBLGENPRO_USER_CODE_REGION_END
            
    {
        #region Class Member Declarations
        private DataColumn _columnCompany;

What are these? Should they be there? Do I need to keep them?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 22-Aug-2010 11:36:04   

I think there are views in your schema with these names and you simply selected all views to import from the db, and have the project property to auto-create new typed views from views set to true (AddNewElementsAfterRefresh), correct?

In the designer, you can check which view they're mapped on. Are they in the catalog? If so, do a refresh and uncheck their checkboxes (you can bulkselect the rows using shift/control)

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 22-Aug-2010 13:57:36   

After looking around a bit, I did find these views in Sql Server Management Studio under System views.

They don't show in my schema in designer's Catalog explorer. It is possible/likely that, they were added by a import and then deleted when I saw them there.

I have the "CleanUpVsNetProjects" checked in my project properties, should this delete these files when I generate code? If so it's doesn't. I have one element in the catalog explorer under views, and one element in project explorer under typed views. I regenerated the source code, there is one updated source file in "...\DatabaseGeneric\TypedViewClasses" but the "Syncobj0x3936314146434541TypedView.cs" remain. They are not in my database generic project file, so I'm going to delete them.

My designer is dated 5/27/2010 v 3.0.10.520 so I will also upgrade to the current released version.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 23-Aug-2010 10:17:45   

arschr wrote:

After looking around a bit, I did find these views in Sql Server Management Studio under System views.

They don't show in my schema in designer's Catalog explorer. It is possible/likely that, they were added by a import and then deleted when I saw them there.

Hmm. If they're not in the catalog explorer, you can't have a mapped element on them. So the typedview must result in an error. When you click the button next to the target on the fieldmappings tab for the typed view, you should get to the view in catalog explorer. If that doesn't work, please attach the llblgenproj so we can have a look and be sure we're talking about the same thing simple_smile

I have the "CleanUpVsNetProjects" checked in my project properties, should this delete these files when I generate code? If so it's doesn't. I have one element in the catalog explorer under views, and one element in project explorer under typed views. I regenerated the source code, there is one updated source file in "...\DatabaseGeneric\TypedViewClasses" but the "Syncobj0x3936314146434541TypedView.cs" remain. They are not in my database generic project file, so I'm going to delete them.

CleanUpVsNetProjects removes files from the vs.net project. It never deletes files on disk.

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 23-Aug-2010 14:46:50   

I've deleted the files from disk.

I should be ok now.