public static UserLedgerEntry02 Get(IPersistentState ctx, string key)
        {
            UserLedgerEntry02 e;

            byte[] buffer = ctx.GetByteArray(key);
            if (buffer == Array.Empty <byte>())
            {
                e = new UserLedgerEntry02();
                e.Initialize();
                e.___entitystate = EntitySerialization02.EntityState.MISSING;
            }
            else
            {
                e = Deserialize(buffer);
            }

            return(e);
        }
Beispiel #2
0
        public static ImageLedgerEntry01 Get(IPersistentState ctx, string key)
        {
            ImageLedgerEntry01 e;

            byte[] buffer = ctx.GetByteArray(key);
            if (buffer == Array.Empty <byte>())
            {
                e = new ImageLedgerEntry01();
                e.Initialize();
                e.OnChangeState(EntitySerialization01.EntityState.MISSING);
            }
            else
            {
                e = Deserialize(buffer);
            }

            return(e);
        }