Example #1
0
        public bool SavePandoraEquipmentPrecisionCasting(ShadowPandoraEquipmentPrecisionCastingEntity entity,
                                                         DbTransaction trans = null)
        {
            var       database       = new SqlDatabase(this.ConnectionString);
            DbCommand commandWrapper = database.GetStoredProcCommand("dbo.P_PandoraEquipmentPrecisionCasting_Insert");

            database.AddInParameter(commandWrapper, "@TransactionId", DbType.Guid, entity.TransactionId);
            database.AddInParameter(commandWrapper, "@ManagerId", DbType.Guid, entity.ManagerId);
            database.AddInParameter(commandWrapper, "@ItemId", DbType.Guid, entity.ItemId);
            database.AddInParameter(commandWrapper, "@LockCondition", DbType.String, entity.LockCondition);
            database.AddInParameter(commandWrapper, "@ExProperties", DbType.String, entity.ExProperties);
            database.AddInParameter(commandWrapper, "@CurProperties", DbType.String, entity.CurProperties);
            database.AddInParameter(commandWrapper, "@Coin", DbType.Int32, entity.Coin);
            database.AddInParameter(commandWrapper, "@Point", DbType.Int32, entity.Point);

            int results = 0;

            if (trans != null)
            {
                results = database.ExecuteNonQuery(commandWrapper, trans);
            }
            else
            {
                results = database.ExecuteNonQuery(commandWrapper);
            }
            return(Convert.ToBoolean(results));
        }
Example #2
0
 public PandoraEquipmentPrecisionCastingShadow(Guid managerId, Guid itemId, string lockcondition, string exProperties, string curPropertiesint, int coin, int point, Guid transactionId)
 {
     Shadow               = new ShadowPandoraEquipmentPrecisionCastingEntity();
     Shadow.ManagerId     = managerId;
     Shadow.TransactionId = transactionId;
     Shadow.LockCondition = lockcondition;
     Shadow.ExProperties  = exProperties;
     Shadow.CurProperties = curPropertiesint;
     Shadow.ItemId        = itemId;
     Shadow.Coin          = coin;
     Shadow.Point         = point;
 }