This question is locked. New answers and comments are not allowed.
Hello,
in the SDK sample of OpenAccess you are using Dto's and the classes which are generated by OpenAccess.
Is there a special reason for that? Because they look very similar...?!
The following code is a part from your SDK so you know wahat I mean.
Thanks in advance
Norbert
in the SDK sample of OpenAccess you are using Dto's and the classes which are generated by OpenAccess.
Is there a special reason for that? Because they look very similar...?!
The following code is a part from your SDK so you know wahat I mean.
namespace
SofiaCarRentalDAL
{
public
partial
class
CarRepository : IRepository<Car, CarDto>
{
private
SofiaCarRentalEntityDiagrams context;
public
SofiaCarRentalEntityDiagrams Context
{
get
{
if
(
this
.context ==
null
)
{
this
.context =
new
SofiaCarRentalEntityDiagrams();
}
return
this
.context;
}
}
public
CarDto FindSingle(Expression<Func<Car,
bool
>> expression)
{
if
(expression ==
null
)
{
expression = (x) =>
true
;
}
Car oaObj =
this
.Context.GetAll<Car>().Where(expression).FirstOrDefault();
return
GetDto(oaObj);
}
Thanks in advance
Norbert