What file was added to the VS project to anable database access?
.edmx
What config file was updated to the VS project?
App.config Capital A
What was added to the config file?
the connecttion string
In addition to the database model diagram, what other key file was created?
Designer.cs
What interface allow Linq access to standard operators to operate on objects like arrays?
IEnumerable
What standard query operators were demonstrated in the very first Linq exercise?
count()
average()
Explain how the keyword var works in C#
Could be anything
What 3 things make up a LINQ'd query?
data source
query definition
query execution
When referring to the Ado.Net Entity Framework, what is the "context object"?
bridge to the database
What 3 things are encapsulated by a context object?
connection
metadata
object state manager
In our first database example what time of class was contained in the var variable 'selectedEmployees'?
object query
What is the role of the Ado.Net Entity Framework?
object relational mapper
What client side part of the framework is responsible for abstracting data to object?
Model
Does this client side technology talk directly to the data storage? Explain.
No, it takes a snapshot of the database when you tell it to. Changes after will not be refelected in Model
The framework generates 3 sets of metadata. What are they?
storage - lowest
mapping
conseptual - highest
Which file houses the meta data?
.edmx
What other key element gets generated by the EDM in addition to the metedata?
designer.cs
What symbol is used as the lambda operator in C#?
=>
Why is a lambda expression sometimes called an inline method?
There is no argument list or return type
What 2 db scenarios do we need to worry about for in Linq To Entities in this course?
firstOrDefault = 0 to 1 row
where
Write a Linq to entitiy query using both an anonymous type and lamba expression to return all employee whose first name is "Sam"
var samEmployees = dbContext.Employees.Where(emp => emp.FirstName == "Sam")
What are the main benifits of using stored procs?
security
1 place info change
faster
When using the EDM to process stored procs, where is the System.Nullable type used?
input parameters
What syntax can we use instead of SystemNull<>
?
What .net class is used to process output parameters?
object parameters
When using intellisence, how so you determine if a parameter is an input or output parameter?
if the "?" shows up
If you add a stored proc after creating the model, what must you ensure is done to create a function based on it?
update the model from the database
What two types of .net assemblies does the case studies use?
.exe
.dll
How many logical layers do all database programs use?
3
presentation
business
data
How many physical layers do all database programs use?
It depends on how many machines are involved
What is the main benifit of a "Fat Client"?
Runs faster
Main benifit of a "Thin Client"?
More secure
What 2 things do you need to do in an .exe project to reference a .dll project?
(vb) add reference
imports
Is a business user tier a client or a server?
both
What 2 responsibilities of event driven programming reside with the business object?
Define event based on a delegate.
Actually raise the event
What 2 responsibilities of event driven programming reside with teh consumer of the business object?
Register event handler
handle the even
What is the AddressOf operator used for?
Function pointer to method
What is the constructor always called in the VB.Net class?
new
What is the syntax for registering an event handler in VB.Net?
Add handler
Describe what a listview control is
multi column list box
multiple sets of data
What attribute of the .xaml<Listview...> node is used to bind data in the listview control?
DisplayMemberBinding = {...}
Which property of the Listview control was loaded with data?
.itemsSource
What data type was laoded in the .itemsSource?
Listview
What xaml sub nodes make up the menu control contents?
MenuItem
True or False
The nodes in a menuitem can be nested?
True
MenuItem within MenuItem
Why would you want to use a dictionary instance to pass data between layers of an application?
Efficientcy
What layers will we be using a dictionary to pass data between the layers?
The two Business layers
What are the main differences between a dictionary and an array?
key value relationship instead of an index relationship
How do we declare an instance of a C#/VB dictionary?
string = key
object = value
What data type is used in SQL server to reflect that a row has changed?
Row Version
What data type was used to Serialize the employee entity object?
byte[]
Describe what an optimistic concurrency strategey is?
2 people cannot update the same data at the same time.
What property was changed in the Data Model to reflect what we want the ADO Framework to flag changes have been made to a particular column in the model?
Update property to "concurrency mode = fixed"
T/F - Setting up a Log file must be done from an Administrator account?
True
writing to the registry
What integral part of the Windows OS does the log file work with?
Registry file
What using was required to get at the Logging api's in C#?
System.Diagnostics
What class does EmployeeBusinessData inherit from?
ConfigBusinessData
What two temporary references were made from the HelpdeskUI(vb) project?
Why are they just temporary?
data.entity
c# .dll
architechture will not allow it
EmployeeBusinessData
What is contained in the byte array received by the Create method?
dictionary
EmployeeBusinessData
What else is stored in the Dictionary besides the properties of the Employee class in the GetById method?
serializes entire employee class and adds it to the dictionary
entity byte[]
EmployeeBusinessData
How many times is the Deserializer routine called in the Update method?
2
EmployeeBusinessData
Describe how the update process works and how the OptimisticConcurreny exception is actually fired
Deserialize the entity and saves the updated row to the dbContext. Once should work, second time should not.
What is the main collection in the BrokenRules class?
dictionary
What is stored as the "key" in the dictionary
name of the rule
boolean is the value
What does the business object do in it's constructor to the BrokenRules object after instantiation?
break all the rules on purpose
What is the significance of having a non-zero count in the dictionary?
What happens when the count reaches zero?