Skip to content

locode Code first approach #17

Closed Answered by Layoric
tiptopweb asked this question in Q&A
Discussion options

You must be logged in to vote

The Astro project is still using GeneratedServices , for it to be code first, you would have to declare your AutoQuery DTOs as well as remove the use of GenerateCrudServices.

public class QueryImage : QueryDb<Image>
{
    
}

public class CreateImage : ICreateDb<Image>, IReturn<Image>
{
    public long ArticleId { get; set; }
    
    public string UrlProxy { get; set; }    
    
    public bool Published { get; set; }
    
    public bool IsFeatured { get; set; }
    
    public bool Deleted { get; set; }
    
    public long Status { get; set; }
    
    public long Type { get; set; }
    
    public long DisplayOrder { get; set; }
        
    public string Name { get; set; }  
}

And s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tiptopweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants