HospitalLib.Providers.TemplateProvider.PrepareStatement C# (CSharp) 메소드

PrepareStatement() 개인적인 메소드

private PrepareStatement ( SqlCommand command, Template template ) : void
command System.Data.SqlClient.SqlCommand
template HospitalLib.Data.Template
리턴 void
        private void PrepareStatement(SqlCommand command, Template template)
        {
            command.Parameters.Add("@Template", SqlDbType.NText);
            command.Parameters["@Template"].Value = template.HtmlTemplate;

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

            _databaseProvider.PushData(command);
        }