export-table-pulgin-csharp 1.1.122 → 1.1.124
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/bin/Json2LiteDB.exe
CHANGED
|
Binary file
|
package/bin/Json2LiteDB.pdb
CHANGED
|
Binary file
|
|
@@ -137,15 +137,15 @@ namespace ${exportNamespace}
|
|
|
137
137
|
{
|
|
138
138
|
protected static LiteDatabase Database;
|
|
139
139
|
protected static ILiteCollection<${RowClass}> Collection;
|
|
140
|
+
public const string CollKey = "${fullName.replace("-", "_")}";
|
|
140
141
|
public static Task Load()
|
|
141
142
|
{
|
|
142
143
|
#if UNITY_EDITOR && ENABLE_CONFIG_LOG
|
|
143
144
|
Debug.Log("ReferConfig-${RowClass}");
|
|
144
145
|
#endif
|
|
145
|
-
|
|
146
|
+
var key = CollKey;
|
|
146
147
|
var ldb = SharedLiteDB.Database;
|
|
147
148
|
Database = ldb;
|
|
148
|
-
const string key = "${fullName.replace("-", "_")}";
|
|
149
149
|
if (!ldb.CollectionExists(key))
|
|
150
150
|
{
|
|
151
151
|
Debug.LogError($"配表资源缺失: {key}");
|
package/package.json
CHANGED
|
@@ -130,15 +130,15 @@ namespace ${exportNamespace}
|
|
|
130
130
|
{
|
|
131
131
|
protected static LiteDatabase Database;
|
|
132
132
|
protected static ILiteCollection<${RowClass}> Collection;
|
|
133
|
+
public const string CollKey = "${fullName.replace("-", "_")}";
|
|
133
134
|
public static Task Load()
|
|
134
135
|
{
|
|
135
136
|
#if UNITY_EDITOR && ENABLE_CONFIG_LOG
|
|
136
137
|
Debug.Log("ReferConfig-${RowClass}");
|
|
137
138
|
#endif
|
|
138
|
-
|
|
139
|
+
var key = CollKey;
|
|
139
140
|
var ldb = SharedLiteDB.Database;
|
|
140
141
|
Database = ldb;
|
|
141
|
-
const string key = "${fullName.replace("-", "_")}";
|
|
142
142
|
if (!ldb.CollectionExists(key))
|
|
143
143
|
{
|
|
144
144
|
Debug.LogError($"配表资源缺失: {key}");
|