Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

code-first

How to disable migration in Entity Framework 4.3.1?

August 14, 2023 by Tarik

If you don’t want to use migrations but in the same time you want EF to create database for you, you just need to set correct database initializer: Database.SetInitializer<YourContextType>(new CreateDatabaseIfNotExists<YourContentType>());

Categories code-first Tags code-first, entity-framework-4.3, entity-framework-migrations Leave a comment

CREATE DATABASE permission denied in database ‘master’ (EF code-first)

February 1, 2023 by Tarik

I had the same problem. This what worked for me: Go to SQL Server Management Studio and run it as Administrator. Choose Security -> Then Logins Choose the usernames or whatever users that will access your database under the Logins and Double Click it. Give them a Server Roles that will give them credentials to … Read more

Categories code-first Tags code-first Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa