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

Creating generated code using entity space 2019 producing this error for tables with out a primary key. #22

Open
jmarq143 opened this issue Jul 31, 2020 · 1 comment

Comments

@jmarq143
Copy link

jmarq143 commented Jul 31, 2020

Table with no primary key produces an error in the generated file like below:

		public virtual bool LoadByPrimaryKey(esSqlAccessType sqlAccessType, )
		{
			if (sqlAccessType == esSqlAccessType.DynamicSQL)
				return LoadByPrimaryKeyDynamic();
			else
				return LoadByPrimaryKeyStoredProcedure();
		}

Since we're working with a table with out any key here.. is it safe to simply remove this method from the generated file?

@jmarq143 jmarq143 changed the title Creating generated code using entity space 2019 producing this error for tables with out a key. Creating generated code using entity space 2019 producing this error for tables with out a primary key. Jul 31, 2020
@MikeGriffinReborn
Copy link
Owner

Yes, that is true, for now you will have to comment out those LoadByPrimaryKey() functions. EntitySpaces requires a primary key on a table in order to update data.

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

2 participants