How Can I Create A Sql Server Database File Mdf Programmatically

How Can I Create A Sql Server Database File Mdf Programmatically