Click here to Skip to main content
15,881,852 members

Hamed Musavi - Professional Profile



Summary

    Blog RSS
58,653
Author
1,210
Authority
3,586
Debator
79
Editor
83
Enquirer
1,457
Organiser
2,281
Participant
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
PinnedAn engineering approach to designing software Pin
Hamed Musavi17-Mar-21 23:21
Hamed Musavi17-Mar-21 23:21 
GeneralMessage Removed Pin
20-Jun-19 8:27
Hamed Musavi20-Jun-19 8:27 
GeneralMessage Removed Pin
21-Feb-18 21:36
Hamed Musavi21-Feb-18 21:36 
GeneralSilent Data Corruption! Pin
Hamed Musavi6-Nov-16 8:35
Hamed Musavi6-Nov-16 8:35 
GeneralRepository with tens of methods is just not right! Pin
Hamed Musavi14-Apr-16 23:26
Hamed Musavi14-Apr-16 23:26 
If you have worked with layered architecture and an ORM for a while you probably have a set of repository classes with some GetSomething methods to return records (probably mapped to objects) from database. To prevent loading all objects you probably have some conditional statements that are applied to query before linq executes them like this:
C#
public SomeObjectList RepoMethod(bool includeRelatedRecordSet1)
{
...
 vr query = context.AllObjects.Where(condition);

 if (includeRelatedRecordSet1) query = query.Include(q => q.RelatedRecordSet1);
}

The problem is that as time passes and applications get more and more complex the list of parameters increases and we endue recreating LINQ albeit in an ugly way!

We don't want to return query and execute it + map results using LINQ outside repository for design reasons, we don't want to return all mapped records and then execute LINQ on objects outside the repository for performance reasons. What should we do? Should we accept linq to object queries as input parameter (lambda) and map these queries to ORM queries? Seems like too much work. Looking for a solution...

Update:
A class that is somewhat dumber than Linq but more flexible than Repository produces better results. For example this is the code using the class:
C#
var friends = 
    myFriends
    .WhereNameIs("Ross")
    .WhereAgeIsGreaterThan(25)
    .MapWith(new PersonMapper());


modified 25-Feb-18 10:01am.

GeneralCodeName One is how Microsoft can win mobile world Pin
Hamed Musavi10-Aug-15 8:30
Hamed Musavi10-Aug-15 8:30 
General.Net Core ROCKS! Pin
Hamed Musavi4-Aug-15 6:08
Hamed Musavi4-Aug-15 6:08 
GeneralConnecting Songs! Pin
Hamed Musavi23-Jul-15 23:37
Hamed Musavi23-Jul-15 23:37 
GeneralAsp.Net 5 error Pin
Hamed Musavi22-Jul-15 9:03
Hamed Musavi22-Jul-15 9:03 
GeneralUbuntu Pin
Hamed Musavi21-Jul-15 0:15
Hamed Musavi21-Jul-15 0:15 
GeneralDependencies and DI Pin
Hamed Musavi17-Jul-15 0:15
Hamed Musavi17-Jul-15 0:15 
GeneralAsp.Net 5 DNX hell! Pin
Hamed Musavi15-Jul-15 8:16
Hamed Musavi15-Jul-15 8:16 
GeneralThis update is not applicable to your computer Pin
Hamed Musavi6-Jul-15 6:46
Hamed Musavi6-Jul-15 6:46 
GeneralWindows buttons Pin
Hamed Musavi4-Jun-15 0:25
Hamed Musavi4-Jun-15 0:25 
GeneralConnect baby! Pin
Hamed Musavi23-May-15 0:30
Hamed Musavi23-May-15 0:30 
BugSignalR weired error! Pin
Hamed Musavi2-Apr-15 2:17
Hamed Musavi2-Apr-15 2:17 
GeneralOne "Settings" Project Pin
Hamed Musavi31-Mar-15 23:11
Hamed Musavi31-Mar-15 23:11 
GeneralDESIGN! Pin
Hamed Musavi2-Feb-15 6:10
Hamed Musavi2-Feb-15 6:10 
GeneralSynchronizing events instead of data Pin
Hamed Musavi5-Dec-14 22:35
Hamed Musavi5-Dec-14 22:35 
GeneralREST vs SOAP, is an stupid comparison! Pin
Hamed Musavi10-Mar-14 6:03
Hamed Musavi10-Mar-14 6:03 
GeneralTechnologies that succeed Pin
Hamed Musavi30-Dec-13 20:23
Hamed Musavi30-Dec-13 20:23 
GeneralUpgrade from Windows 8 to 7! Pin
Hamed Musavi6-Sep-13 4:01
Hamed Musavi6-Sep-13 4:01 
GeneralWeb 2.1 Pin
Hamed Musavi15-Jul-13 22:32
Hamed Musavi15-Jul-13 22:32 
GeneralObtaining IP address! Pin
Hamed Musavi7-Jul-13 1:54
Hamed Musavi7-Jul-13 1:54 
GeneralOver 9 Years! Pin
Hamed Musavi26-May-13 8:12
Hamed Musavi26-May-13 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.