mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 修复 SetSource 临时主键重载方法 + Column 设置 Name 后无效的 bug;
This commit is contained in:
		@@ -1,27 +1,27 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "iisSettings": {
 | 
					  "iisSettings": {
 | 
				
			||||||
        "windowsAuthentication": false,
 | 
					    "windowsAuthentication": false,
 | 
				
			||||||
        "anonymousAuthentication": true,
 | 
					    "anonymousAuthentication": true,
 | 
				
			||||||
        "iisExpress": {
 | 
					    "iisExpress": {
 | 
				
			||||||
            "applicationUrl": "http://localhost:35350/",
 | 
					      "applicationUrl": "http://localhost:64513/",
 | 
				
			||||||
            "sslPort": 0
 | 
					      "sslPort": 44328
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "profiles": {
 | 
					 | 
				
			||||||
        "IIS Express": {
 | 
					 | 
				
			||||||
            "commandName": "IISExpress",
 | 
					 | 
				
			||||||
            "launchBrowser": true,
 | 
					 | 
				
			||||||
            "environmentVariables": {
 | 
					 | 
				
			||||||
                "ASPNETCORE_ENVIRONMENT": "Development"
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        "dbcontext_01": {
 | 
					 | 
				
			||||||
            "commandName": "Project",
 | 
					 | 
				
			||||||
            "launchBrowser": true,
 | 
					 | 
				
			||||||
            "environmentVariables": {
 | 
					 | 
				
			||||||
                "ASPNETCORE_ENVIRONMENT": "Development"
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
            "applicationUrl": "http://localhost:35351/"
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "profiles": {
 | 
				
			||||||
 | 
					    "IIS Express": {
 | 
				
			||||||
 | 
					      "commandName": "IISExpress",
 | 
				
			||||||
 | 
					      "launchBrowser": true,
 | 
				
			||||||
 | 
					      "environmentVariables": {
 | 
				
			||||||
 | 
					        "ASPNETCORE_ENVIRONMENT": "Development"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "dbcontext_01": {
 | 
				
			||||||
 | 
					      "commandName": "Project",
 | 
				
			||||||
 | 
					      "launchBrowser": true,
 | 
				
			||||||
 | 
					      "environmentVariables": {
 | 
				
			||||||
 | 
					        "ASPNETCORE_ENVIRONMENT": "Development"
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "applicationUrl": "http://localhost:35351/"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -494,7 +494,7 @@ namespace FreeSql.Internal.CommonProvider
 | 
				
			|||||||
            if (tempPrimarys != null)
 | 
					            if (tempPrimarys != null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                var cols = _commonExpression.ExpressionSelectColumns_MemberAccess_New_NewArrayInit(null, null, tempPrimarys?.Body, false, null).Distinct().ToDictionary(a => a);
 | 
					                var cols = _commonExpression.ExpressionSelectColumns_MemberAccess_New_NewArrayInit(null, null, tempPrimarys?.Body, false, null).Distinct().ToDictionary(a => a);
 | 
				
			||||||
                _tempPrimarys = cols.Keys.Select(a => _table.ColumnsByCs.TryGetValue(a, out var col) ? col : null).ToArray().Where(a => a != null).ToArray();
 | 
					                _tempPrimarys = cols.Keys.Select(a => _table.Columns.TryGetValue(a, out var col) ? col : null).ToArray().Where(a => a != null).ToArray();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return this;
 | 
					            return this;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user