public static NPCNEP5FundingRound Get(string key)
        {
            if (key.Length == 0)
            {
                return(Null());
            }

            Neo.SmartContract.Framework.Services.Neo.StorageContext ctx = Neo.SmartContract.Framework.Services.Neo.Storage.CurrentContext;
            string _skeyTag = key + _classKeyTag;

            NPCNEP5FundingRound e;

            byte[] bsta = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, _skeyTag + _sSTA);
            if (NeoTrace.RUNTIME)
            {
                TraceRuntime("Get(skey).NPCNEP5FundingRound.bsta", bsta.Length, bsta);
            }
            if (bsta.Length == 0)
            {
                e = NPCNEP5FundingRound.Missing();
            }
            else // not MISSING
            {
                int ista = (int)bsta.AsBigInteger();
                NeoEntityModel.EntityState sta = (NeoEntityModel.EntityState)ista;
                e = new NPCNEP5FundingRound();

                BigInteger TotalSupply    = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, _skeyTag + _sTotalSupply).AsBigInteger();    //NPCLevel2IGet_cs.txt
                BigInteger StartTimestamp = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, _skeyTag + _sStartTimestamp).AsBigInteger(); //NPCLevel2IGet_cs.txt
                BigInteger EndTimestamp   = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, _skeyTag + _sEndTimestamp).AsBigInteger();   //NPCLevel2IGet_cs.txt
                if (NeoTrace.RUNTIME)
                {
                    TraceRuntime("Get(skey).e._totalSupply, e._startTimestamp, e._endTimestamp", e._totalSupply, e._startTimestamp, e._endTimestamp);                   // Template: NPCLevel2Part2_cs.txt
                }
                e._totalSupply = TotalSupply; e._startTimestamp = StartTimestamp; e._endTimestamp = EndTimestamp;
                e._state       = sta;
                e._state       = NeoEntityModel.EntityState.GETTED; /* OVERRIDE */
            }
            if (NeoTrace.RUNTIME)
            {
                LogExt("Get(skey).NPCNEP5FundingRound", e);
            }
            return(e);
        }
        public static NPCNEP5FundingRound Get(byte[] key)
        {
            if (key.Length == 0)
            {
                return(Null());
            }

            Neo.SmartContract.Framework.Services.Neo.StorageContext ctx = Neo.SmartContract.Framework.Services.Neo.Storage.CurrentContext;
            byte[] _bkeyTag = Helper.Concat(key, _bclassKeyTag);

            NPCNEP5FundingRound e;

            byte[] bsta = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, Helper.Concat(_bkeyTag, _bSTA));
            if (NeoTrace.RUNTIME)
            {
                TraceRuntime("Get(bkey).bsta", bsta.Length, bsta);
            }
            if (bsta.Length == 0)
            {
                e = NPCNEP5FundingRound.Missing();
            }
            else // not MISSING
            {
                int ista = (int)bsta.AsBigInteger();
                NeoEntityModel.EntityState sta = (NeoEntityModel.EntityState)ista;
                e = new NPCNEP5FundingRound();

                BigInteger TotalSupply    = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, Helper.Concat(_bkeyTag, _bTotalSupply)).AsBigInteger();    //NPCLevel2GGet_cs.txt
                BigInteger StartTimestamp = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, Helper.Concat(_bkeyTag, _bStartTimestamp)).AsBigInteger(); //NPCLevel2GGet_cs.txt
                BigInteger EndTimestamp   = Neo.SmartContract.Framework.Services.Neo.Storage.Get(ctx, Helper.Concat(_bkeyTag, _bEndTimestamp)).AsBigInteger();   //NPCLevel2GGet_cs.txt
                e._totalSupply = TotalSupply; e._startTimestamp = StartTimestamp; e._endTimestamp = EndTimestamp;                                                // Template: NPCLevel2HGet_cs.txt
                e._state       = sta;
                e._state       = NeoEntityModel.EntityState.GETTED;                                                                                              /* OVERRIDE */
            }
            if (NeoTrace.RUNTIME)
            {
                LogExt("Get(bkey).NPCNEP5FundingRound", e);
            }
            return(e);
        }