473,666 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creazione dinamica proprietà

Ciao a tutti,
vi chiedo una cortesia.
Io devo connettermi ad un Database Oracle, e devo poter leggere tutte
le tabelle.
Voglio però creare una classe base Tabella che sia la superclasse di
tutte le mie classi tabelle, però devo fare in modo che ogni classe
che rappresenta una tabella non debba contenere al suo interno le
specifiche set e get per ogni campo corrispondenti ai campi della
tabella nel db.
Mi spiego meglio :
io voglio che la mia connessione si colleghi ad un db, e se gli dico
caricami la tabella anagrafica, voglio che le proprietà della classe
(che non sono altro i campi della tabella "ANAGRAFICA " del db) mi
venagno create in "automatico ", in modo che io se voglio farmi
restituire la proprietà anagrafica.nome , per certo mi restituirà un
tipo string, mentre per la proprietà cap mi restituirà un int...
Così facendo posso aggiungere campi nuovi alla tabella senza dover
modificare la mia classe anagrafica(o object) ogni qualvolta...
è possibile ??
Ringrazio tutti quelli che mi risponderanno ...

Mar 22 '06 #1
1 2995
Purtroppo ci sono poche persone nel questo grupo que parlano
l'italiano, ed il mio italiano non é piu buono. Capisco lo que chiere
fare, ma non posso rispondere bene.

C'é un gruppo in italiano:

microsoft.publi c.it.dotnet.csh arp

anche questo gruppo puo aiutare:

microsoft.publi c.it.dotnet.ado

Mar 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1243
by: fede | last post by:
Ho visto che su Interdev si può impostare per un progetto ASP la proprietà EnableSessionsDefault a true o false.Qualcuno sa dirmi che effetti ha?E quali le conseguenze? Grazie!
0
2159
by: StellaAzzurra | last post by:
Salve, premettendo che non sono un esperta di access, vi pongo il mio problema. Sto facendo una rubrica con access ed avrei la necessità di fare in modo che se ad esempio un mio clienti avesse 5 numeri di telefono dell'ufficio, questi potessero essere visualizzati tutti su una stessa cella, ovviamente uno alla volta, ed avrei pensato al metodo della casella combinata e...qui nasce il problema.
18
3306
by: cs | last post by:
This is the function malloc_m() that should be like malloc() but it should find memory leak, and over bound writing in arrays. How many errors do you see? Thank you ******************************************** /* mallocm.c */ /* funzione di libreria per trattamento della memoria e rilevamento errori */ /* uso: c_compiler malloc.c e usare malloc .obj */
2
1672
by: Gilberto Carcano | last post by:
Is there a way to avoid public custom properties to persist in the ASPX code? I'have a class for columns collection in a Web Control i'm writing. This class must to implement the IStateManager interface and so the ITrackingManager read-only property is required. When the control persist the collection it persist this property too and generate a runtime error. I've readed abouth the NotSerialized attribute but it's a solution for public...
4
4173
by: GZG | last post by:
Por ejemplo Dim FRM As String = "fUno" 'y poder yo decir lo siguiente FRM.Show 'se asume que hay un formulario con el nombre fUno en mi proyecto 'mi necesidad es crear un objecto formulario a partir de un string
0
250
by: mastermirko | last post by:
Ciao a tutti, vi chiedo una cortesia. Io devo connettermi ad un Database Oracle, e devo poter leggere tutte le tabelle. Voglio però creare una classe base Tabella che sia la superclasse di tutte le mie classi tabelle, però devo fare in modo che ogni classe che rappresenta una tabella non debba contenere al suo interno le specifiche set e get per ogni campo corrispondenti ai campi della tabella nel db. Mi spiego meglio :
1
3369
by: polocar | last post by:
Ciao a tutti, leggendo qua e là per il forum ho scoperto che non sono l'unico ad avere questo problema. Se si inserisce un controllo ComboBox in un form di C#, non è possibile impostare la sua altezza ad un valore diverso da 21. Forse, cambiando la dimensione del font, si potrebbe riuscire a cambiare anche l'impostazione dell'altezza... (MS farebbe comunque meglio ad introdurre per il ComboBox una proprietà AutoSize impostabile a "false"...
67
9885
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the quesion. I have begun to familiarize myself here with the gcc compiler in a win32 environment, in the form of MinGW using both Dev C++ and MSYS as interfaces. I have recompiled some old math code that uses long double types throughout and...
2
1677
by: T-Mat | last post by:
Ciao a tutti!!!! Devo creare un'oggetto riutilizzabile che abbia le funzioni di modifica,aggiunta,eliminazione e scrittura di elementi in un file XML utilizzando il linguaggio C#. Una volta scritto tutto il codice x le funzioni sopra citate, come faccio a creare l'oggetto che possa essere utilizzato anche in programmazioni successive?! Grazie a tutti.....
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1775
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.