export-table-pulgin-csharp 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/src/index.ts +3 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAwQpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -213,7 +213,7 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
|
|
|
213
213
|
}
|
|
214
214
|
`;
|
|
215
215
|
}
|
|
216
|
-
else {
|
|
216
|
+
else if (f.type == "number" || f.type == "string") {
|
|
217
217
|
return `
|
|
218
218
|
public static ${RowClass}[] GetConfigsBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
|
219
219
|
{
|
|
@@ -221,6 +221,9 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
|
|
|
221
221
|
}
|
|
222
222
|
`;
|
|
223
223
|
}
|
|
224
|
+
else {
|
|
225
|
+
return "";
|
|
226
|
+
}
|
|
224
227
|
})}
|
|
225
228
|
|
|
226
229
|
#endregion uid map
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -190,13 +190,15 @@ ${foreach(fields, f => {
|
|
|
190
190
|
return _tempDictBy${convMemberName(f.name)}.GetValueOrDefault(${convMemberName(f.name)});
|
|
191
191
|
}
|
|
192
192
|
`
|
|
193
|
-
} else {
|
|
193
|
+
} else if (f.type == "number" || f.type == "string") {
|
|
194
194
|
return `
|
|
195
195
|
public static ${RowClass}[] GetConfigsBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
|
196
196
|
{
|
|
197
197
|
return Configs.Where(c => c.${convMemberName(f.name)} == ${convMemberName(f.name)}).ToArray();
|
|
198
198
|
}
|
|
199
199
|
`
|
|
200
|
+
} else {
|
|
201
|
+
return ""
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
)}
|