Practical .NET Data Access Layer - 20

zhaozj2021-02-16  52

7. Others

After reading the protagonist, it is the best male (female) roof game!

Just, the author only prepares two little things, even if you are for everyone to eat, J

(1) Dafconfig

This is a bit embarrassing, how can I read a configuration file? This is true, although XML people will operate, but you really have to think about some special XML (app.config / web.config)! For example, this section below for the configuration information of DAF (eliminating the Data Access Logic section) is Method Levell:

EntityType = "adox_dataable"

Dalclass = "Customerdal_adox" />

EntityType = "adox_dataset"

Dalclass = "Customerdal_adox" />

EntityType = "ORM_ObjectSpaces_Object"

Dalclass = "Customerdal_orm" />

EntityType = "ORM_ObjectSpaces_ObjectSet"

Dalclass = "Customerdal_orm" />

EntityType = "Object"

Dalclass = "Customerdal_adox" />

EntityType = "Collection_ArrayList"

Dalclass = "Customerdal_orm" />

EntityType = "adox_reader"

Dalclass = "Customerdal_adox" />

...

Next paragraph: http://www.9cbs.net/develop/read_article.asp? Id = 27565

转载请注明原文地址:https://www.9cbs.com/read-24088.html

New Post(0)