Comments (3)
var enquiries = _unitOfWork.GetRepository().GetList().Items;
foreach(Enquiry enquiry in enquiries)
{
Enquiries e = new Enquiries();
e.Identifier = enquiry.Identifier;
e.Created = enquiry.Created;
e.Contact = _unitOfWork.GetRepository<Contact>().GetList(predicate: x => x.Id == enquiry.ContactId).Items.FirstOrDefault();
e.Status = _unitOfWork.GetRepository<EnquiryStatus>().GetList().Items.Where(predicate: x => x.Id == enquiry.StatusId).FirstOrDefault();
e.EnquiryType = _unitOfWork.GetRepository<EnquiryType>().GetList().Items.Where(predicate: x => x.Id == enquiry.EnquiryTypeId).FirstOrDefault();
e.EnquiryProducts = _unitOfWork.GetRepository<EnquiryProduct>().GetList().Items.Where(predicate: x => x.EnquiryId == enquiry.Id).FirstOrDefault();
if(e.EnquiryProducts!=null)
e.EnquiryProducts.Product= _unitOfWork.GetRepository<Product>().GetList().Items.Where(predicate: x => x.Id ==e.EnquiryProducts.ProductId).FirstOrDefault();
lst.Add(e);
}
from threenine.data.
enquiries contain of contact ,enquirystatus I try to use include but
from threenine.data.
Thanks , just trying to find some time to update the documentation and add some additional functionality. I am currently very busy on another project. Hopefully I can find sometime in a couple of days
from threenine.data.
Related Issues (20)
- Readonly repository HOT 2
- GetList Order By HOT 1
- simple context HOT 3
- Need an example, how to inject dependency in Console App (.NET Core) HOT 2
- Provide example of Create, Update, Delete Api Examples. HOT 3
- Get All Items HOT 1
- Unable to cast object of type IRepositoryReadOnly, IRepository and IRepositoryAsync
- Implement Unit test Coverage
- cant find update method in Async Repository. HOT 1
- Use GetRepository and GetRepositoryAsync at same service throughs an exception HOT 3
- I have a catalog database and a profile database HOT 11
- Write Documentation HOT 2
- Implement Readthedocs
- Create Product Page
- Inconsistent naming in SingleOrDefault vs FirstOrDefault HOT 6
- Use Myget for Dev package release
- Implement Split query functionality
- Functionality to get a single Item
- Provide Sample Applications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threenine.data.