Many a times you feel struck by SharePoint throwing some error message. The message in most cases may not be descriptive enough to understand the cause.
The logs can be of good help in that case:
By default the logs are created under path: <drive>\Program Files\Common Files\Microsoft shared\Web Server Extensions\15\LOGS.
For SP 2010 it would be 14 instead of 15. For SP 2013 its 15 and accordingly for older or newer versions.
SharePoint Central administration- Monitoring
Now under Monitoring, open the option ‘configure diagnostic logging’.
configure daignostic logging
Now you reach the ‘Configure Diagnostic logging’ page, scroll little bit down you should find an option to set the logging path:
Sharepoint Logging path
Keep it as it is, or change as you want it to be.
Reading Logs will save you a lot of time and help diagnose problem quickly. Make a habit of using the logs.
Summary of differences/ similarity between LINQTOSQL vs EF5:
|Entity Framework 5
||LINQ TO SQL
|Good for scenario where you expect 1-1, 1-N, M-N relationships between entity classes and relational tables/ views
||Good where only 1-1 mapping between the entity classes and the relational tables /views is expected.
|EF support multiple databases like MySQL, Oracle, apart from SQL
||It supports only one database
|Based on Generic Repository and Unit of work patterns
||Based on Generic Repository and Unit of work patterns
|Suitable for enterprise development
||Suitable for Rapid Application development
|Support Complex datatype
||Does not support Complex types
|Next version is available
||MS stops new versions
|Supports all 3 mapping approaches TPH, TPT, TPCT
||Supports only TPH