Reflection and characteristics the. NET Framework provides reflection and attribute techniques that can be used to check data repeatability to determine whether a piece of data is written to a database table. requires an entity to write a data to the database, many times, it is necessary to check that the data is not a duplicate data, such as the new person, assuming that the ID number can not be duplicated, the new person ID number and the person table of one or more duplicates, at this time need to give hints or take other means, such as updates, or delete, and so on. Method in this requirement scenario, you can use the features and reflection technologies provided by the. NET Framework to address such requirements. The specific process, followed by referencing the newly-written attribute class in the entity class, constructs its unique identity (one or more attribute combinations); Finally, when checking data repeatability, use the method provided by attribute to obtain a unique identity attribute (one or more) for each entity class. Attribute[] GetCustomAttributes (Modeltype, Inheri
1.. NET Framework-sample code that examines data uniqueness by applying attributes and reflection
Summary: the. NET Framework provides reflection and feature technology that can be used to check data repeatability to determine whether a piece of data is written to a database table.
2. Learn about the "look mode" example of Python design mode
Summary: The design pattern in Python is designed to reduce coupling by code management with multiple modules, as illustrated by examples below. Application features: When many complex and small functions need to invoke requirements,
3. Oracle Performance Myths
Summary: In order to improve performance, we have a lot of methods or solutions for Oracle database itself. The main features are: Shared server mode (MTS) cluster technology (clustering), RAC partition parallel processing (mainly parallel queries) These features that Oracle offers are really for performance improvement, but we tend to overlook the