Home > Net >  How to use c # reflection reading the database
How to use c # reflection reading the database

Time:11-10

How to use reflection to read database in the field

CodePudding user response:

Oh, I don't know is how,
Every day is I want to reflect, I want a multi-threaded,
Not everything is reflected, multithreading,

You tell us what you want to achieve? Existing code is what?

CodePudding user response:

That what we said the blog everyday garden, a lot of people aren't, now look at the results, you have what when they aren't, this is the result,

CodePudding user response:

Reflection is reflected, database is the database,

Query the database using the Ado.Net, Ado.Net and EF ORM,

Reflection is through object types are derived,

If use of EF, entity itself is to use the reflection of mapping and, speaking, reading and writing.

CodePudding user response:

The original poster should first check the concept of reflection, there is no connection and database, you may want to ask is, what the ORM to access the database.

CodePudding user response:

Automatic mapping but do you say? It will use reflection, but ask you this question is also too jumping, food should eat mouthful of hey

CodePudding user response:

Unknown folded, is don't want to read database table field names

CodePudding user response:

Access to the data, I don't want to use the DataTable to display the data, is there a more flexible approach

CodePudding user response:

Well, I said, don't want to instantiate the class after ADO, want to get to the data through reflection mechanism

CodePudding user response:

I want to use a method of dynamic can adapt, after modified

CodePudding user response:

Datetable faster, I mean, don't give yourself digging holes:)

CodePudding user response:

The ORM framework? SqlSugar you try
  •  Tags:  
  • C#
  • Related