Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 19308

The ADO.NET Entity Framework is a set of ORM (Object-Relational-Mapping) tools for the .NET Framework, since version 3.5 SP1.

4 votes
2 answers
529 views

Trying to clearly seperate my logic in my program

My problem is I need to know is my code in my CRUD functions structured well and effectively? I plan to implement CRUD for Locations entity too. hopefully without redundant code. you see how one CR …
Matt Rohde's user avatar
0 votes
1 answer
509 views

using 2D array to read datatable ok? or repeatedly call function that reads record by record?

I am asking this for coding style. I have a program class that calls a function(of a data access class) that reads from a table (using entity framework by the way), and I'm preparing to write the Dat …
Matt Rohde's user avatar
2 votes
1 answer
293 views

Am I using too many functions in my DataAccess Class?

I am wondering if in particular the function called AssignDBStatusMessage and TryDataBaseAction are unnecessary. It seems to me that the logic is more cluttered if i do away with those functions. Pl …
Matt Rohde's user avatar
1 vote
Accepted

using 2D array to read datatable ok? or repeatedly call function that reads record by record?

I have discovered, with thanks to you each, that it is better to call the display method within the DataAccess.ReadMethod() than to pass strings, Here's what I think i should do: public class DataAcc …
Matt Rohde's user avatar
1 vote
1 answer
2k views

Passing an entity to use it's fields to update method is ok to do?

I have two different ideas on how to handle this Update method in my MVC Model class "DataAccess" And I'm wondering if in the first, I'm handling my class incorrectly or ambiguously, because I'm using …
Matt Rohde's user avatar
1 vote
2 answers
844 views

Preparing code for more versatile CRUD functions

I am using C# and the .NET entity framework, and I'm also learning how to better use OOP concepts in my program. My code is all displayed below. I would like to ensure my logic is properly organized …
Matt Rohde's user avatar
5 votes
1 answer
594 views

combining 4 CRUD functions into 1?

I have a console application that I'm trying to make with minimal redundant code. I have 4 functions, Create, Read, Update, and Delete. is it possible or practical to combine the four functions int …
Matt Rohde's user avatar
0 votes
1 answer
439 views

Making a Custom class less specialized but just as understandable?

In my C# program, I have a class defined as follows: public class DbResult { public bool bSuccess { get; private set; } public String Message { get; private set; } private DbResult(bool …
Matt Rohde's user avatar
2 votes
2 answers
10k views

Making a property virtual to cause EF to load the property

I am walking through a sample MVC4 ASP.NET tutorial available on PluralSight.com, by Scott Allen. I am in a section #5, Working with Data (part 2), "Listing Reviews". This application has a database …
Matt Rohde's user avatar