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.
Post Reply
Andros
User
Posts: 111

MySQL - MySqlDbtype Timestamp problem (v2018)

Post by Andros »

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?


Webmaster
User
Posts: 9425

Post by Webmaster »

If you are a registered user, just click Tools -> Update Template. If not, download again and reinstall: http://www.hkvstore.com/aspnetmaker/download.asp


Post Reply