public static int NeedSyncToDB(IntPtr l)
    {
        int result;

        try
        {
            DataSection dataSection = (DataSection)LuaObject.checkSelf(l);
            bool        b           = dataSection.NeedSyncToDB();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }