Skip to main content

Posts

C# LINQ Update using multiple where

We can use LINQ update using more than one where. // Upadate PR_RECIVEDINVOICEs status var users = from u in dataContextObj.PR_RECIVEDINVOICEs where u.RecivedInvoice_PublisherInvoice == receiveBook.InvoiceNo && u.Status=="Order" select u; users.ToList().ForEach(u => u.Status = "Book Receive"); dataContextObj.SubmitChanges();

UML Getting Started For Software Development

                                                        FIG: Student Consultancy System   To create and evolve a conceptual class diagram, you need to iteratively model: Classes Responsibilities Associations Inheritance relationships Composition associations Vocabularies To create and evolve a design class diagram, you need to iteratively model: Classes Responsibilities Associations Inheritance relationships Composition associations Interfaces I am not describe the details that how to you will design a UML Diagram for your Application...!! i just share a link which is really great for short time UML understanding.                          http://www.agilemodeling.com/artifacts/classDiagram.htm Thank you.

LINQ date range search

Here i just write down the direct code for LINQ date range search 1: internal List<Book> GetStockInRecord(Book bookObj) 2: { 3: _dataContextObj = new KARIM_INT_SECURITY_DataClassesDataContext(); 4: List<Book> bookLsit = new List<Book>(); 5: foreach (var p in (from j in _dataContextObj.Stock_Ins 6: where j.StockDate >= bookObj.StockFromDate && j.StockDate <= bookObj.StockToDate 7: select j).Distinct()) 8: { 9: Book aBook = new Book(); 10: aBook.BookId = (int) p.BookId; 11: aBook.BookIsbnNo = p.AD_BOOK.Book_BookIsbnNo; 12: aBook.BookTitle = p.AD_BOOK.Book_BookTitle; 13: aBook.BookAuthorName = p.AD_BOOK.Book_BookAuthor; 14: aBook.BookBinding = p.AD_BOOK.Book_BookBinding; 15: aBook.BookCategoryName = p.AD_BOOK.Book_BookCategory; 16: aBook.BookCurrencyName = p.AD_BOOK.Book_Currency; 17: ...

wcf ria domain services getting started

WCF ria domain service is one of most important technique for Silverlight application. When i start work on Domain service for Silverlight application here i found 2 thing: 1. what is wcf ria domain service...?      http://stackoverflow.com/questions/3684421/what-is-wcf-ria-services 2. How to implement it...?     http://www.silverlightshow.net/items/WCF-RIA-Services-Part-1-Getting-Started.aspx#addComment Thank you.

WPF role based window access

 Application security is one of the most important part for any application. In WPF application i just want to introduce that their will be many Dashboard for different module. Each dashboard will contain their menu. The admin will assign group, user & password. Admin will also assign the access for each dashboard menu window for each Group. when a user will login he/she will see the all dashboard but can see those menu which was assign by the admin in his group. To be continue based on feed back...

LINQ to SQL connectionstring pickup from multiple DBML

In Your application if you have more than one DBML file then each DBML file will contain app.config for each DBML file. consider the WPF application it will be not possible for you to change the client app.config connection string on deployment. when your application will be ready for deployment take a copy of your solution from your source control. bcoz now you are going to perform many change on your app.config. 1. if you have more than one project then you have change the all project output type as a class library except the start up project.    right click on the project > properties > change the output as class library 2. Click on setting > right click on the connection string click remove string. if you have more than one then remove all as same. 3. if you have app.xaml . right click and exclude it from project. 4. open your DBML file > right click > properties > expand the connection > select application string as false. ...

ASP.NET Crystal report Group Tree hide

It's really looking odd that when a crystal report load it also load the group tree. You can easily stop the group tree showing. aspx : <CR:CrystalReportViewer ID="secondarySalesCrystalReportViewer" runat="server" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" AutoDataBind="true" EnableDrillDown="False" GroupTreeStyle-ShowLines="False" HasCrystalLogo="False" Height="50px" Width="350px" /> and on the page loading  event you have to use:  secondarySalesCrystalReportViewer.ToolPanelView =CrystalDecisions.Web.ToolPanelViewType.None; for example protected void Page_Load(object sender, EventArgs e) { secondarySalesCrystalReportViewer.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None; if (!IsPostBack) { secondarySalesCrystalReportViewer.ToolPanelV...