|
|
it is not working for me i want audit log not logging logs !!
|
|
|
|
|
It is exactly the same concept. The important thing is what information you put in the log.
|
|
|
|
|
i'll try more different ways but not working for me , i want audit to record every things in my system where user performed !
|
|
|
|
|
We have no idea what you are doing, or what you mean by "not working for me". If you want help with a programming problem then you need to provide proper details.
|
|
|
|
|
I think he's missing the part where one actually "calls" the logger.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I think he's missing much more than that.
|
|
|
|
|
Audit what?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Such a concise and detailed question (it' not working for me) deserves a a detailed response - then fix it.
Are you trying to audit database changes, keystrokes on the web site, movement through your web site. What are you trying to achieve, if you give us some detail we may be able to help you.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
hi bro ,i want to add audit log to my all tables in my projects when users delete or create or update data in system
|
|
|
|
|
Member 13408259 wrote: i want to add audit log to my all tables Then please get on and do it. You asked this question a month ago, what have you done since then?
|
|
|
|
|
You have a choice, depending on your database you can add triggers spit to audit activity or you can add some sort of auditing to your DAL in c# that records each activity into the database.
Personally I create triggers spit in the database to audit all master file tables IE I do not audit transaction tables.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Keypress and keydown event occurs when click on flexgrid control but value is not showing.when use doubleclick event is working that.
|
|
|
|
|
FlexGrid? Why on earth would you be using such an ancient control?
Your question doesn't make sense. What value? Why are you using the KeyPress and KeyDown events? For what? What is the DoubleClick event being used? For what? What are you expecting to work that doesn't?
Oh, and change your username to something other than your email address, unless you like getting bombarded by spam emails. NEVER post your email address in a public forum.
|
|
|
|
|
Hello All,
This is my first application in asp.net core
Table Like this ->
PublisherMater : PublisherId,PublisherName,TotalBooks
PublisherDetails: BookName,ReleaseDate,AuthorName
My question is : I want to manage master and details entry using asp.net core mvc with code first approch.
first step : Create Model
secound : Create MVC Controller with view using Entity Framework
anybody have any example like this ?
Thanks in advance
|
|
|
|
|
Your tables are bad. You should not be putting "TotalBooks" in the PublisherMaster table at all.
What you should be doing is something closer to this:
public class Publisher
{
public int PublisherId { get; set; }
public string PublisherName { get; set; }
public ICollection<Book> PublishedBooks { get; set; }
}
public class Book
{
public int BookId { get; set; }
public string BookTitle { get; set; }
public string AuthorName { get; set; }
public Date? ReleaseDate { get; set; }
}
Every publisher can publish any number of books, hence the collection in the class.
|
|
|
|
|
|
Could you help to explain how can I Great Forms (GUI) in MAC using Visual studio 2019?
|
|
|
|
|
Quote: Mac Apps using Xamarin and C#
Visual Studio 2019 for Mac - IDE for macOS
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
It's called WinForms, and works under Mac.
Anything else is not great; WinForms has usability, predictability, and accessability. The latter meaning it works even for those who see less. Predictability means a button is recogizable as one, meaning users don't need expensive education. Usability means they find that on their own.
So, to be short; a great UI is a non MAC one.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Exactly the same way you would do it in Windows. Use the installed templates to create the application in the framework of your choice.
|
|
|
|
|
For the purposes of an OAuth 2.0 Client, I need to parse a HTTP GET with no body, and return either this pre-canned HTML (success) or that pre-canned HTML (fail), maybe serve up a bit of CSS and an image or two. Every other request I can respond 404.
I have elsewhere explained that I can't use anything based on System.Net.HttpListener for this purpose, because that puts me in the situation of needing to elevate privileges on the host at least *sometime previously* ... but this app is ClickOnce so-as-to-avoid-the-need-for-admin-rights ... especially the need for admin rights in order to setup the app to receive an OAuth 2.0 authentication code!
System.Net.TcpListener dodges the 'urlacl' infrastructure though. Sure, it puts more responsibility on me to 'be a webserver', but as explained, the 'functional surface area' of this web-server is quite small. So whether I write-my-own or import some dependencies, I feel like this *should* result in either a little bit of code, or a few minimal dependencies.
Is this expectation reasonable, do you think, or are there gremlins in the forest? Are there any minimal 'sits on top of TcpListener' HTTP libraries/servers you are aware of?
|
|
|
|
|
|
Big relief: https is NOT required for OAuth 2.0 redirect_uri which use 'localhost' as the hostname (at least with Xeros Authentication Server anyway ... it is possibly a requirement of the spec).
A good thing too, or else presenting a clean certificate for 'localhost' to the user's browser (kind of super-important when getting the user to trust your app to access their resources) would require presentation a self-signed cert that's trusted by the host. Which would require generating and adding adding it to the trust store at some point in time prior to the moment it is used. Which would require privilege-elevation prior to the moment it is used. Which we are trying to avoid with ClickOnce.
|
|
|
|
|
My program is going through each word in a story looking for names. I am using the following function to check against a string full of names (aaron, adam, ...) to see if the word is a name, but it is returning true for partial word matches such as "the" in "Theodore". What am I doing wrong?
Public Function WordExists(ByVal searchString As String, ByVal findString As String) As Boolean
Dim returnValue As Boolean = False
If System.Text.RegularExpressions.Regex.Matches(searchString, "\b" & findString & "\b").Count > 0 Then returnValue = True
Return returnValue
End Function
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If WordExists(NameList, TextBox2.Text) = True
Then MsgBox("Yep!")
Else MsgBox("Nope!")
End If
End Sub
Thank you for your help!
Amerigo
|
|
|
|