473,394 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 2978
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.public.it.dotnet.csharp

anche questo gruppo puo aiutare:

microsoft.public.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
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
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...
18
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...
2
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...
4
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...
0
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...
1
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...
67
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...
2
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...

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.