HospitalLib.Providers.TemplateProvider.Remove C# (CSharp) Method

Remove() public method

public Remove ( Template template ) : void
template HospitalLib.Data.Template
return void
        public void Remove(Template template)
        {
            new AnalysisProvider(_databaseProvider).Remove(template);

            const string query = "DELETE FROM Template WHERE Name=@Name";
            var command = new SqlCommand(query);

            command.Parameters.Add("@Name", SqlDbType.NVarChar);
            command.Parameters["@Name"].Value = template.Name;

            _databaseProvider.PushData(command);
        }