Subsonic class has reference to HttpContext.Current.User in a Windows app -


I am using SubSonic 2.1. I went against this one database and made it all right in the right way, however, when I went to use one of the classes, the app would not be created. I am creating a windows application, but in the subsonic file it is in reference to HPPTEX.Court.user. Does anyone know why this will happen?

The subscore initially uses the asp.net application.

Though it works very well in Windows. Applications of applications but you have the system in your project The web is required to be included.

View in ClassTemplate.aspx:

  if (System.Web.HttpContext.Current! = Null) items .save (System.Web.HttpContext.Current.User. Identity.Name); Other items Save (System Threading Thread.Content Principal.Indentity .name);  

If the code is executed inside the asp.net webpage, then it draws usernames from context and receives the user name from the existing thread.

There is a conference in Subsonic, if you have a table that has been created and modified column and you use items. Save ("username") method These columns are also updated.

If you do not change the CS_ClassTemplate.aspx file, use the system. You probably have the system to rebuild the web and your DAL. The context of the web will not be required.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -