![]() => optionsBuilder.UseSqlite("Data Source=.\\Database\\products. For more guidance on storing connection strings, see. #warning To protect potentially sensitive information in your connection string, you should move it out of source code.You can avoid scaffolding the connection string by using the Name = syntax to read it from configuration - see https: //go./fwlink/?linkid=2131148. Protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) Public partial class ProductsContext: DbContext ![]() Now you should have the Context that contains the model creation and for each table you will get a class. But let's ignore it because it's not the main topic of this article. You need to consider moving it in a protected way to a configuration file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |