How can I make a collection of 2 dimensional arrays?
I need to create some 2 dimensional arrays. How can I store them? I don`t know how many of them, so the collection must be done dynamicaly.
The second qestion is, how can I display every array at once in ie List box, data grid or somerwhere else?
thx
Answers (4)
0
change this from your code(#DbContetxt);
- namespace Mvcpractice1.Models
- {
- public class EmployeeContext:DbContext
- {
- public EmployeeContext:base("EmployeeContext")
- {
-
- }
- public DbSet<Employee> Employees { get; set; }
- }
- }
0
Hi Sangeetha,
Kindly check whether your database credentials are correct? The issue will happen due to inproper connection.
0
hi,
Seems like a connection issue. You can use the Data link properties to find if the connection is fine. Do the following:
- Create a blank notepad and rename it to "X.UDL"
- Double click to open it
- Under connections tab choose the server name/enter the name use the correct credentials and DB
- Click OK to save it.
Now open the file in Notepad and compare the connection string properties.