BelongsTo is a attribute in Castle ActiveRecord that is used to mark an association as many-to-one. For example consider following class diagram. There is an association between Student and Teacher named ArtStudent. This is a many-to-one association so you must add BelongsTo attribute to Student class as showed in following code snippet. [ActiveRecord(Lazy = true)]public …
شرکت (موسسه) ما در حال استخدام برنامهنویس جدید است. اصل آگهی شرکت به شرح ذیل میباشد: «موسسه اطلاعرسانی مهندسی پزشکی پرشیا شبکه قصد دارد تعدادی برنامهنویس C#/ASP.NET که فارغ التحصیل مهندسی کامپیوتر – نرمافزار باشند را به طور تمام وقت استخدام نماید. تخصصهای مورد نیاز عبارتاند از تسلط به C#/ASP.NET 3.5 و MS SQL Server …
دلایل خیلی زیادی برای این برتری وجود دارد. ولی فعلاً به این یکی بسنده کنید. فرایند پشتیبانگیری و برگرداندن پشتیبانها (backup/restore) در svn خیلی ساده ولی در TFS خیلی پیچیده است. برای پشتیبانگیری از مخزن SVN کافی است فولدر آن را در ویندوز کپی کرده و در جای مطمئنی نگه دارید. برای برگرداندن پشیبان هم …
I was searching for tools that generate Castle ActiveRecord domain classes from databases tables and here is my list of findings: 1. ActiveWriter:Is a visual tools that you can draw your class diagrams with it. It has versions for VS 2005 and VS 2008 but I’m not sure about VS 2010. 2. My Generation:A general …
ASP.NET GridView and other similar controls that support paging needs special methods that return only the requested slice of data and the count of total data. As I’m a lover of NHibernate/Castle ActiveRecord I have gathered paging techniques in NHibernate HQL, LINQ-to-NHibernate and Castle ActiveRecord: NHIbernate HQL: public IList GetData(int page, int pageSize, ref long …
همان طور که میدانید اسکرام یکی از متودولوژیهای جدید توسعه نرمافزار از خانواده Agile است. این روش مزایای زیادی، اقلاً برای ما، دارد و روز به روز رواج بیشتری در دنیا پیدا میکند. ما هم در مدت اخیر تصمیم گرفتیم از این روش برای یکی دو تا از پروژههای جدید استفاده کرده و مزایا و …
بیشتر کارهای کنترلهای ASP.NET را هم میتوان به صورت Declartive و هم در Codebehind انجام داد. یکی از این کارها عملیات Paging در GridView است. متاسفانه یک محدودیت ظریف در حالت غیر Declarative وجود دارد که کار را برای کسانی که همه کارهای کنترلهایشان را در Codebehind انجام میدهند سخت کرده است. اگر GridView را …
Sometimes that you need to customize TFS Build 2010, you need to create a custom CodeActivity. A CodeActivity is written in C# and you can do what you can’t in TFS Build itself, there. The simplest way to create a custom CodeActivity, deploy and use it, is as follow: 1. Create a .Net 4.0 based …
Doing FTP in .Net is not as hard as you may imagine. There is a very simple way and a bit advanced way. Simple way is using System.Net.WebClient class and its UploadFile method. Advanced way includes using System.Net.FtpWebRequest and System.Net.FtpWebResponse classes. Using them you can do ordinary FTP operations like ListDirectory, UploadFile, DeleteFile, etc. For …
اگر شما هم تا حالا برای ساخت یک استرینگ از استرینگ و عدد در C# از روشی مثل string str = “old” + (2+2).ToString() استفاده میکردید، یعنی خودتان زحمت ToString() را میکشیدید، دیگر این زحمت را نکشید. چون قانون String Concatenation در C#، شرح داده شده در بخش ۷.۸.۴ مشخصات زبانی C#، طوری است که …