private static SpellDetailsModel Create(DbDataReader reader)
        {
            SpellDetailsModel model;

            model = new SpellDetailsModel();
            model.Load(reader);

            return(model);
        }
Esempio n. 2
0
        public void Delete()
        {
            QueryInformation query;

            //get rid of anything in the spell detail model table
            SpellDetailsModel.DeleteBySpell(Id);

            //record
            query             = QueryInformation.Create(DeleteQuery);
            query.CommandType = CommandType.Text;
            query.Parameters.Add(new QueryParameter("@" + IdField, DbType.Guid, this.Id));
            BaseModel.RunCommand(query);
        }