Need C# training via online using TeamViewer or a chat session of some kind. I like TeamViewer with Skype.
I am a C# developer and I need some help understanding the code below. I need to understand what exactly is happening line by line.
So you must be an advanced C# coder with EntityFramework and C#4.0 experience. If you do not understand every line of code below, please do not bid.
Thanks.
The training would need to take place between 5PM and 7PM UTC -6 (Central Standard Time USA)
Code Example:
public abstract class RepositoryBase where T : class
{
internal ProgrammingEFDB1Entities _dataContext;
internal DbSet _dbset;
public RepositoryBase(ProgrammingEFDB1Entities context)
{
this._dataContext = context;
this._dbset = [login to view URL]();
}
public virtual List Get(
Expression<Func> filter = null,
Func<IQueryable, IOrderedQueryable> orderBy = null,
string includeProperties = "")
{
IQueryable query = _dbset;
if (filter != null)
{
query = [login to view URL](filter);
}
foreach (var includeProperty in [login to view URL]
(new char[] { ',' }, [login to view URL]))
{
query = [login to view URL](includeProperty);
}
if (orderBy != null)
{
return orderBy(query).ToList();
}
else
{
return [login to view URL]();
}
}
public virtual void Add(T entity)
{
[login to view URL](entity);
}
public virtual void Delete(T entity)
{
[login to view URL](entity);
}
public virtual void Delete(Expression<Func> where)
{
IEnumerable objects = [login to view URL](where).AsEnumerable();
foreach (T obj in objects)
[login to view URL](obj);
}
public virtual T GetById(long id)
{
return [login to view URL](id);
}
public virtual T GetById(string id)
{
return [login to view URL](id);
}
public virtual IEnumerable GetAll()
{
return [login to view URL]();
}
public virtual IEnumerable GetMany(Expression<Func> where)
{
return [login to view URL](where).ToList();
}
public T Get(Expression<Func> where)
{
return [login to view URL](where).FirstOrDefault();
}
}
Dear Sir
It is a wonderful opportunity to be able to bid for a project.
I also take this opportunity to send you a Private Message.
Thanks
OffLoadProjects