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

cann't change publish or sub table name for sqlserver #632

Closed
zhuang1125 opened this issue Aug 18, 2020 · 4 comments
Closed

cann't change publish or sub table name for sqlserver #632

zhuang1125 opened this issue Aug 18, 2020 · 4 comments

Comments

@zhuang1125
Copy link

cann't change publish or sub table name for sqlserver. the table name is hard coding at sql text.

master: CAP/src/DotNetCore.CAP.SqlServer/IStorageInitializer.SqlServer.cs
line 60: CREATE TABLE [{schema}].[Received](
line 70: CONSTRAINT [PK_{schema}.Received] PRIMARY KEY CLUSTERED
line 79: CREATE TABLE [{schema}].[Published](
line 88: CONSTRAINT [PK_{schema}.Published] PRIMARY KEY CLUSTERED

@yang-xiaodong
Copy link
Member

@xiangxiren Would you like to fix this bug?

@xiangxiren
Copy link
Contributor

Isn’t the table name always hard-coded? Only Schema configurable.

@yang-xiaodong
Copy link
Member

@xiangxiren User can override the GetTableName method to custom table name

public virtual string GetReceivedTableName()

@zhuang1125
Copy link
Author

ok,this is a bug,fixed。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants