unity-orm
unity-orm copied to clipboard
Unity O/R Mapper for sqlite.
public void InsertAll(T[] objects){ var desc = Registory.GetClassDesc(); foreach(T obj in objects){ string insert = SQLMaker.GenerateInsertSQL(desc,obj); database.ExecuteNonQuery(insert); } } change to public void InsertAll( T[] objects ) { var desc...
` public class IntValueConverter : ValueConverter{ public override object FromJson (object o) { if(o == null){ //return 0; return null; //here should return null !!!!!!!!!!!! } } And we should...
I think it is better
tab and space was mixed I unified them as space. If you like switch is better than else if. I will fix it too
I added Debug.LogError. updated wasn't called anybody... I commented out
I just cleaned up code. I'm afraid if the "StreamingAssets" can work on the Android device? I guess it is read only on the Android device.
I added e.Message for avoiding to show Warning log
I found same code. I used just called other's method. And, Error message is Debug.LogError is better.
exception's error didn't exist so added
Escape is not public so I fix as private. GenerateInsertSQL method's foreach ran twice. I united it.