Method for dynamically creating entity class under frame of Silverlight
A technology of dynamic creation and entity classes, applied in the direction of program control devices, etc., can solve problems such as difficult management, silverlight does not support datatable, and heavy system development workload, so as to improve work efficiency and not easy to manage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0014] end:
[0015] 1. First, serialize the DataTable into a string, and save the table name, column name and other information in the string string. Part of the code is as follows:
[0016] Private static string SerializeDataTable(Datatable dt, int ipIndex)
[0017] {
[0018] try
[0019] {
[0020] StringBuilder strResult = new StringBuilder()
[0021] String strTableName = "";
[0022] StrtablName=dt.TableName;
[0023] If (strTableName=="")
[0024] StrtablName="TABLENAME_"+ipIndex, ToString();
[0025] strResult.Appdend("▲");
[0026] for(int s=0:s
[0027] strResult.Appdend(dt.Columns[s].ColumnName);
[0028] 2. Encode and compress the obtained string:
[0029] Byte[]bytes=System.Text.Encoding.UTF8.GetBytes(str);
[0030] Byte[]bR=Utils. Compress(bytes);
[0031] Return System.Convert.ToBase64String(bR)
[0032] Silverlight side:
[0033] First, decode and decompress the string, and parse ...
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