Page 1 of 1

Bug or future?

Posted: Thu 05 Oct 2006 12:29
by darkman.cv
//DbProfileProvider
//v. 2.51
public override ProfileInfoCollection FindProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)

...
string text1 = "SELECT u.username, u.lastactivitydate, p.lastupdateddate FROM aspnet_profiles p, aspnet_users u WHERE p.userid = u.userid AND u.applicationname = :applicationname AND u.username LIKE :username ";

...
IDataReader reader1 = command1.ExecuteReader();
collection1 = new ProfileInfoCollection();
while (reader1.Read())
{
string text2 = (string) reader1.GetValue(0);
DateTime time1 = (DateTime) reader1.GetValue(1);
DateTime time2 = (DateTime) reader1.GetValue(1);
collection1.Add(new ProfileInfo(text2, false, time1, time2, -1));
}
reader1.Close();
---
DateTime time1 = (DateTime) reader1.GetValue(1);
DateTime time2 = (DateTime) reader1.GetValue(1);

Why use twice last activity date?

Posted: Fri 06 Oct 2006 06:42
by Alexey
Please specify what exactly you need or what is the problem. Where is this code snippet from?

Code

Posted: Sat 07 Oct 2006 03:17
by darkman.cv
namespace CoreLab.PostgreSql.Web.Providers
class DbProfileProvider
function FindProfilesByUserName

Posted: Mon 09 Oct 2006 08:02
by Alexey
Yes, it is a bug. We will fix it. Look forward to the next build.

Posted: Tue 28 Nov 2006 08:57
by Alexey
New build is available for download now.