Exemplo n.º 1
0
        public static void SetLastUpdateID(object actionid, string databaseGuid, EntityDB.IDatabaseService db)
        {
            if (string.IsNullOrEmpty(databaseGuid))
            {
                throw new Exception("Database Guid can not be empty");
            }
            var dbconfig = db.ExecSqlString("select contentConfig from __wayeasyjob").ToString().ToJsonObject <DataBaseConfig>();

            dbconfig.LastUpdatedID = Convert.ToInt32(actionid);
            dbconfig.DatabaseGuid  = databaseGuid;

            var data = new EntityDB.CustomDataItem("__wayeasyjob", null, null);

            data.SetValue("contentConfig", dbconfig.ToJsonString());
            db.Update(data);
        }