MySQL - MySqlDbtype Timestamp problem (v2018)

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.

MySQL - MySqlDbtype Timestamp problem (v2018)

Postby Andros » Fri Dec 08, 2017 6:39 am

Hi, I'm experimenting with ANM2018.
I have a ANM12 project mysql based.
When I generate the app, it gives me a list of error like

Models\actions_info.cs(404,27): error CS0117: 'MySqlDbType' non contiene una definizione per 'TimeStamp' [D:\Sviluppo\WebApp\ZZCMS\ZZCMS18\Source\QCMS.csproj]
Models\appointments_info.cs(1637,27): error CS0117: 'MySqlDbType' non contiene una definizione per 'TimeStamp' [D:\Sviluppo\WebApp\ZZCMS\QCMS18\Source\QCMS.csproj]
Models\articles_info.cs(1399,27): error CS0117: 'MySqlDbType' non contiene una definizione per 'TimeStamp' [D:\Sviluppo\WebApp\ZZCMS\ZZCMS18\Source\QCMS.csproj]

and so on...

this is the code:

// Timestamp
Timestamp = new DbField<MySqlDbType> {
TableVar = "actions",
TableName = "actions",
FldVar = "x_Timestamp",
Name = "Timestamp",
Expression = "`Timestamp`",
BasicSearchExpression = CastDateFieldForLike("`Timestamp`", 0, "DB"),
Type = 135,
DbType = MySqlDbType.TimeStamp, // THIS IS THE LINE WHICH GENERATES THE ERROR
DateTimeFormat = 0,
VirtualExpression = "`Timestamp`",
IsVirtual = false,
ForceSelection = false,
SelectMultiple = false,
VirtualSearch = false,
ViewTag = "FORMATTED TEXT",
HtmlTag = "TEXT",
Sortable = true, // Allow sort
DefaultErrorMessage = Language.Phrase("IncorrectDate").Replace("%s", DateFormat),
IsUpload = false
};
Timestamp.Init(this); // DN
Fields.Add("Timestamp", Timestamp);

any idea?
Andros
 
Posts: 28
Joined: Sun Jan 27, 2013 5:54 am

Re: AspNetMaker 2018 MySQL - MySqlDbtype Timestamp problem

Postby Webmaster » Fri Dec 08, 2017 10:48 am

If you are a registered user, just click Tools -> Update Template. If not, download again and reinstall: http://www.hkvstore.com/aspnetmaker/download.asp
Webmaster
 
Posts: 10734
Joined: Fri Aug 06, 2004 5:59 pm


Return to General Discussion (ASP.NET Maker)