Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change DataSet's namespace
Message
 
À
15/03/2006 12:17:28
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01104336
Message ID:
01104722
Vues:
14
Keith,
Interesting approach. Thanks.

Einar
>Einar, you can declare a class that inherits the dataset and put the declared class in any namespace that you like.
>
>>>Isn't that what I said? <g> Well, all except for the folder name ... not sure where that comes from ... I don't see that anywhere in my stuff.
>>
>>If you add a folder to your project and then add a dataset inside the folder the dataset's namespace should include the folder name (well it does no my machine under .NET 2.0 <s>) .
>>
>>>
>>>Yeah, I don't know why you would want to have your DataSet's namespace be anything different than the assembly (project, DLL, whatever term you want to use ... they all mean the same thing). If you can remember the reason why, let us know. (It's a bitch getting old, isn't it> <g>)
>>
>>I will but don't hold your breath :) Yes getting old is not a walk in the park.
>>
>>>
>>>~~Bonnie
>>>
>>>
>>>
>>>
>>>>That is almost correct :) The namespace is: [the assembly's default namespace].[folder name] that the .xsd is in.<g>
>>>>Anywho so I guess it is impossible to change a dataset's namespace manually.
>>>>Currently I can't remember why I feelt the need to change the dataset's namespace, but if it was a good idea I am sure it will come back to me lol
>>>>
>>>>Thanks for the reply.
>>>>
>>>>>Einar,
>>>>>
>>>>>It should generate the namespace of the project that the .xsd is in.
>>>>>
>>>>>~~Bonnie
>>>>>
>>>>>
>>>>>
>>>>>>How can I change my typed dataset's namespace (permanently)?
>>>>>>I have tried opening the cs file and change the namespace manually and that works until the dataset designer is opened and the cs file is rebuilt.
>>>>>>The namespace property in the properties sheet show http://tempuri.org/DataSet1.xsd so I don't think this is the place to change it.
>>>>>>
>>>>>>Any assistance would be appreciated.
>>>>>>Thanks,
>>>>>>Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform