Unhandled exceptions are a bit of a misnomer. In .NET, every exception is handled. By the time you access the specifics of an error in your Try-Catch block, the Framework has already analyzed the problem, built a structure to contain its details, examined the stack trace, and used reflection to pinpoint the location of the error, among other mundane tasks. In short, when errors occur, .NET serves them up to your code in a neatly packaged, highly examinable data block.
خلاصه اولین جلسه طراحی زبان C# 7
Highlights:
- Representing data better in code (tuples, object destructuring, pattern matching, record types, array slices)
- Metaprogramming (virtual extension methods, default interface implementations, enhanced generic constraints, mixins/traits, delegation)
- Immutable values (readonly var x ~ val x ~ let x)
- Asynchronous enumeration and streams
- Code contract language integrations
- Structural typing (think implicit interfaces in Go)
- Explicit lambda capture handling (pass by value or reference semantics explicitly)
- Solve null reference problem (Non-nullable references, Option type)
EF Code First #1
وقتی کانکش استرینگو به این صورت تعربف میکنم :
<configuration> <configSections> </configSections> <connectionStrings> <clear/> <add name="Context" connectionString="Data Source=localhost;Initial Catalog=test;Integrated Security = true" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <compilation debug="true"/></system.web> </configuration>
این erorr میده :
An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.
علتش چی میتونه باشه ؟
اگر خاطرتان باشد یک مقاله سه قسمتی در مورد قابلیت جدید FileStream مربوط به SQL Server 2008 چندی قبل در این سایت منتشر شد (+ و + و +).
خبر خوش این است که این قابلیت تحت عنوان Remote Blob Storage یا RBS در شیرپوینت 2010 (که نسخهی بتای آن یکی دو روزی است که به مشترکین MSDN ارائه شده) قابل استفاده میباشد و به این صورت میتوان به سادگی از مزایای این فناوری جدید بهرهمند شد.
مستندات رسمی فعال سازی این قابلیت در شیرپوینت 2010:
این قابلیت Remote Blob Storage در شیرپوینت 2007 هم قابل پیاده سازی است اما پشتیبانی رسمی نمیشود:
پ.ن.
ارزش این چند سطری که مطالعه فرمودید حدود یک میلیون و 200 هزار تومان مطابق قیمتی است که از یکی از شرکتهای داخلی مدعی اختراع این فناوری برای شیرپوینت 2007، دریافت شده است!
ReSharper جهت بهبود کیفیت کدهای نوشته شده راهنماییهای مختلفی را ارائه میدهد. اما اکثر اینها مختصر و مفید و خلاصه هستند. برای مثال این متد بهتر است استاتیک شود یا این متغیر بهتر است readonly شود و الی آخر. اما چرا؟
برای رفع این نقیصه، افزونهای برای ReSharper تهیه شده است به نام WhySharper که دلایل راهنماییهای ارائه شده از طرف افزونهی اصلی را نیز بیان میکند (لینکی را به سایت stackoverflow جهت مشاهده بحث مربوطه ارائه میدهد).
این افزونه از گوگل کد و یا رپیدشیر قابل دریافت است.
متاسفانه امکان استفاده از گوگل کد وجود ندارد و این افزونه، فایل بررسی نگارش و همچنین پیشنهادات خود را از گوگلکد میخواند که سبب عدم بارگذاری آن خواهد شد. برای رفع این مشکل، مسیر زیر را پس از نصب پیدا کنید:
سپس دو فایل زیر را در آن مسیر کپی نمائید:
دریافت این دو فایل
آپلود فایل توسط فرمهای پویای jqGrid
- مستقل هست از مباحث اعتبارسنجی سمت کاربر تعریف شده توسط data annotationها. از افزونهی jQuery Validator استفاده نمیکند. سیستم خاص خودش را دارد. فقط از اعتبارسنجی سمت سرور حاصل data annotationها میشود در آن استفاده کرد.
- Data Processing Extension
- Using SSRS In ASP.NET MVC Application
- Microsoft.Reporting.WebForms.ReportDataSource
var option = $('<option></option>').attr("value", data[i].Id).text(data[i].Title);
کتابخانه DoFilter
DoFilter is a Full Responsive Bootstrap Multipurpose Filtering and Shorting plugin built on Latest Version of Bootstrap Framework (v3.3.7), HTML5, CSS3 and jQuery. Its wonderful features can be used to Filtering and Shorting your website content as like Portfolio, Service, Team, Blog, Products, Pricing, FAQ etc. Also you can customize it for Filtering and Shorting any your website content.
DoFilter is a Full Responsive Isotope Multipurpose Filtering and Shorting plugin. Filtering can hide and show item elements with the filter option. Items that match that filter will be shown. DoFilter Responsive Isotope Multipurpose Filtering and Shorting can rearrange the order of item elements based on their data. Items that do not match will be hidden.
There are 19+ filter styles with 100% responsive design. Indeed, you will be able to showcase your content on mobile devices such as smart phones and tablets. It has many features like CSS3 and jQuery animations, single and multiple Shorting and Filtering. All the codes are clean and well organized. Also have proper help documentation. It looks great with all types of devices.