Dynamic mapping and conversion method of data table and entity class
A technology of dynamic mapping and conversion methods, applied in the field of data processing, can solve problems such as time-consuming and labor-intensive, and achieve the effect of strong practicability and easy promotion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0063] Embodiment: the final realization of the present invention is a DLL under the .NET environment, and in use, following steps are arranged:
[0064] Step 1: First reference this DLL in the code project, and add the namespace INSPUR.Dynamic.AutoMap to the related class;
[0065] Step 2: At the appropriate code position, according to the target object type and source object type, construct a string form, such as:
[0066] Fr["LastName "] to UserName, Fr["EmployeeID "] to UserID
[0067] Step 3: Call the method Select ,Such as:
[0068] var users = dt. AsEnumerable()
[0069] .AsQueryable()
[0070] .Select ("Fr[\"LastName\"] to UserName,
[0071] Fr[\"EmployeeID\"] to UserID");
[0072] In the above code, dt is the source object data table DataTable, User is the target object entity class, "Fr[\"LastName\"] to UserName, Fr [\"EmployeeID\"] to UserID" is the string mapping relationship expression, Since there ar...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com