Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Some Issue in design surface #86

Closed
y976362357 opened this issue Jul 31, 2019 · 4 comments
Closed

Some Issue in design surface #86

y976362357 opened this issue Jul 31, 2019 · 4 comments
Labels
no repro Can't reproduce. Need sample code that exhibits the issue. question Requesting information released Issue is resolved in a current release
Milestone

Comments

@y976362357
Copy link

hi, i found some issue in design surface.

  1. can't select the ef package version

a

why cause this?
it depends on some urls i can't visit?

  1. 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;

@msawczyn
Copy link
Owner

msawczyn commented Aug 7, 2019

  1. 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.

  2. I haven't seen that happen before, but I'll certainly look into it.

  3. Same as the previous answer.

Thanks for letting me know about these.

@msawczyn msawczyn added investigating Looking into this question Requesting information labels Aug 7, 2019
@msawczyn
Copy link
Owner

  1. 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.

@msawczyn msawczyn added pending release Issue is resolved in the current codebase, will be published with the next release no repro Can't reproduce. Need sample code that exhibits the issue. and removed investigating Looking into this labels Aug 12, 2019
@mmarinchenko
Copy link

  1. 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.

@msawczyn msawczyn added this to the 1.3.0.5 milestone Sep 18, 2019
@msawczyn msawczyn added released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Sep 30, 2019
@mmarinchenko
Copy link

hi, i found some issue in design surface.

  1. can't select the ef package version

  1. 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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no repro Can't reproduce. Need sample code that exhibits the issue. question Requesting information released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

3 participants