Some Issue in design surface
y976362357 opened this issue · 4 comments
hi, i found some issue in design surface.
- can't select the ef package version
why cause this?
it depends on some urls i can't visit?
- generated code error
i have a entity named Sample.
then using add properties via code add the following code with initial value default for Propertity Name
public Int32 Id!; public String Name = "default";
generated code like below:
double quotation marks with the default value
public partial class Sample
{
partial void Init();
/// <summary>
/// Default constructor
/// </summary>
public Sample()
{
Name = ""default""; //double quotation marks
Init();
}
/*************************************************************************
* Persistent properties
*************************************************************************/
/// <summary>
/// Identity, Required
/// </summary>
[Key]
[Required]
public int Id { get; private set; }
/// <summary>
/// Required, Default value = ""default""
/// </summary>
[Required]
public string Name { get; set; }
}
3.Adding Properties via Code can't set min length of string
when i type the code in add properties as code like below.
public Int32 Id!; public String[10-40] Name;
then save and open the add properties via code again.
it show the code like below
public Int32 Id!; public String[40] Name;
-
It could indeed be that you can't reach the resource on the internet. It's getting the list of available versions from the Nuget server that you have configured in your Visual Studio installation.
-
I haven't seen that happen before, but I'll certainly look into it.
-
Same as the previous answer.
Thanks for letting me know about these.
- and 3) will be fixed in the next release. I can't reproduce your first issue, though.
For future reference, please report issues separately, since they may be solved separately. It just makes it easier for developers to both track the issues and to find how they were fixed historically. Thanks.
- This doesn't work for me too (VS 2017).
NuGet API URL is actually reachable on the machine: https://api-v2v3search-0.nuget.org/query?q=Microsoft.EntityFrameworkCore&prerelease=false
.
JSON with packages data is returned. Tested in Chrome and Edge.
hi, i found some issue in design surface.
- can't select the ef package version
- This doesn't work for me too (VS 2017).
NuGet API URL is actually reachable on the machine:
https://api-v2v3search-0.nuget.org/query?q=Microsoft.EntityFrameworkCore&prerelease=false
.JSON with packages data is returned. Tested in Chrome and Edge.
Now it's working (as of v1.3.0.10)! Thanks :)