16,021,041 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Mukesh Bhagat (Top 6 by date)
Mukesh Bhagat
20-Jan-15 7:24am
View
Thx OriginalGriff...
I had already read your link..but doesn't find solution.
I have to find out how many columns(VendorMaster table) are used in all stored procedure inside database.
Mukesh Bhagat
19-Aug-14 7:03am
View
I want to filter report viewer after display result set table . I want filter like excel sheet after result appear in report viewer.
Mukesh Bhagat
3-Dec-13 10:23am
View
It is type of guid data type of property id.
Mukesh Bhagat
3-Dec-13 9:12am
View
Hello phil.o,
Here is my complete method i want to get record from below method.
public DataTable getSalesByProperty(Guid propertyId)
{
try
{
DataTable dt = new DataTable();
DataColumn dc = new DataColumn();
dc.AutoIncrement = true;
dt.Columns.Add("salesId", typeof(Guid));
dt.Columns.Add("PropertyName", typeof(string));
dt.Columns.Add("ClientName", typeof(string));
dt.Columns.Add("MovedInDate", typeof(DateTime));
dt.Columns.Add("LeaseAmt", typeof(decimal));
dt.Columns.Add("CommissionPrcnt", typeof(decimal));
dt.Columns.Add("ComissionDlr", typeof(decimal));
var sls = (from s in tde.Sales
join p in tde.Properties on s.PropertyId equals p.PropertyId
where s.IsActive == true
&& (propertyId == Guid.Empty || s.PropertyId == propertyId)
select new
{
salesId = s.SaleId,
PropertyName = p.Name,
ClientName = s.Tenant1FirstName + " " + s.Tenant1LastName + " " + s.Tenant2FirstName + " " + s.Tenant2LastName + " " + s.Tenant3FirstName + " " + s.Tenant3LastName + " " + s.Tenant4FirstName + " " + s.Tenant4LastName,
MovedInDate = (DateTime?)s.DateTenantMovedIn ?? DateTime.Now,
LeaseAmt = s.LeaseAmt,
CommissionPrcnt = (decimal?)s.Commssion ?? 0,
ComissionDlr = (decimal?)s.FlatFee ?? 0
}).ToList();
sls.ToList().ForEach((n) =>
{
DataRow row = dt.NewRow();
row.SetField<guid>("salesId", n.salesId);
row.SetField<string>("PropertyName", n.PropertyName);
row.SetField<string>("ClientName", n.ClientName);
row.SetField<datetime>("MovedInDate", n.MovedInDate);
row.SetField<decimal>("LeaseAmt", n.LeaseAmt);
row.SetField<decimal>("CommissionPrcnt", n.CommissionPrcnt);
row.SetField<decimal>("ComissionDlr", n.ComissionDlr);
dt.Rows.Add(row);
});
return dt;
}
catch (Exception ex)
{
throw ex;
}
}
it does not accept null values into guid.empty property.
error like -
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Pls try to resolve.
Thanks
Mukesh Bhagat
18-Sep-13 9:08am
View
<add name="treEntities" connectionstring="metadata=metadata=res://*/App_Code.treModel.csdl|res://*/App_Code.treModel.ssdl|res://*/App_Code.treModel.msl; provider=System.Data.SqlClient;provider connection string='Data Source=localhost; Initial Catalog=Tre;Integrated Security=True;Connection Timeout=60; multipleactiveresultsets=true'" providername="System.Data.EntityClient">
Mukesh Bhagat
13-Aug-13 7:35am
View
Thanks for helping...It works perfectly..
Show More