Search   

Sunday, February 05, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender.
kreis.gif Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  ******** can't ...
 ******** can't assign System.Collections.Generic.IList
 
 6/25/2006 10:00:21 PM
Gerhard
12 posts


******** can't assign System.Collections.Generic.IList
Hello, during Enhancing Assembly I get several messages in the output window like the following: ************ can't assign System.Collections.Generic.IList`1[[Ist.TWR.DBAccess.CTblIterationTest, Ist.TWR.DBAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] to IList. The Enhancing completes with the following messages: Generating Binary Saving mapping file Generating schema file Enhancer ready What does this message mean? The software seems to work but I'm a bit anxious about the message. Regards Gerhard
 6/26/2006 2:08:16 PM
Mirko
109 posts
5th


Re: ******** can't assign System.Collections.Generic.IList
 Modified By Mirko  on 6/26/2006 2:09:43 PM)

Hi Gerhard,

IList<T> doesn't implement the interface IList - thus you can't assign it directly to IList. If you need to do that, you must work with variables of type List<T>. List<T> implements both IList<T> and IList.

Best Regards:
Mirko

 6/26/2006 5:29:08 PM
Gerhard
12 posts


Re: ******** can't assign System.Collections.Generic.IList
Hi Mirko, in the project I'm using only IList like the following example: [NDORelation(typeof(CTblIterationStep), RelationInfo.Composite)] private IList m_IterationSteps = new List(); I searched in the complete project for the the old IList interface, but couldn't find one, so for me is not clear why the error message occures. Regards Gerhard
 6/28/2006 11:07:48 AM
Mirko
109 posts
5th


Re: ******** can't assign System.Collections.Generic.IList

Hi Gerhard,

you use either this code:

[NDORelation(typeof(...), RelationInfo.Composite]
private IList m_IterationSteps = new ArrayList();

or that:

[NDORelation(RelationInfo.Composite)]
IList<...> m_IterationSteps = new List<...>();

both versions should work with NDO.

If possible, send your solution to us so we can check, what's going wrong. [support_at_netdataobjects.de, replace _at_ with @].

Best Regards:
Mirko

  NDO-Forum postings in english please, if possible.  Developing with NDO  ******** can't ...
  SearchSearch  Forum HomeForum Home