Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text column type is not an supperted by SqlTableDependency #243

Open
IichiKohuro opened this issue Jun 30, 2022 · 0 comments
Open

Text column type is not an supperted by SqlTableDependency #243

IichiKohuro opened this issue Jun 30, 2022 · 0 comments

Comments

@IichiKohuro
Copy link

My class:

public class ServiceIngenerJournal
{
	public int ID { get; set; }

	public bool state { get; set; }

	public DateTime? dt { get; set; }

	public int? numobject { get; set; }

	public string dopinfo { get; set; }

	public int? statecell { get; set; }

	public string nameaddress { get; set; }

	public string prefix { get; set; }

	public string comments { get; set; }

	public bool? isSirenOn { get; set; }
}

Main code:

SqlTableDependency<ServiceIngenerJournal> dep;
private static List<ServiceIngenerJournal> entities;

private void Start()
{
	try
	{
		dep = new SqlTableDependency<ServiceIngenerJournal>(journalsDbConnString, "ServiceIngenerJournal");		
		dep.OnChanged += Changed;

		dep.Start();			
	}
	catch (Exception ex)
	{
		// throw here
		Console.WriteLine(ex.Message); 
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant