Skip to content
#

orm

Here are 3,132 public repositories matching this topic...

AndriySvyryd
AndriySvyryd commented Jan 25, 2021

Originally filed by @ruirodrigues1971 at PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1304

Smaller repro from @lauxjpn:

This one is a very weird issue. I reproduced the behavior not just with MySQL, but also with SQL Server. It seems that this issue is part of EF Core.

The sample code I used for reproduction:

Program.cs

`

prisma
Jolg42
Jolg42 commented Mar 3, 2021

Help output of the CLI could use some work:

λ prisma generate -h
Generate artifacts (e.g. Prisma Client)
Usage
With an existing Prisma schema
  $ prisma generate
Or specify a schema:
  $ prisma generate --schema=./schema.prisma
Flag
  --watch    Watch the Prisma schema and rerun after a change

or

λ prisma db pull --help
Pull the state from the database to the Prisma sche
dawid-nowak
dawid-nowak commented Nov 29, 2020

Is it supported at the moment to have 'serialize_as' and 'deserialize_as' on the single field in the sturcture as shown below?

#[derive(Identifiable, Queryable, PartialEq, Debug, Serialize, Deserialize, Insertable)]
#[table_name = "blah"]
pub struct Data {

    #[diesel(serialize_as = "SensitiveStringSerializer")]   
    #[diesel(deserialize_as = "SensitiveStringDeserializer")]

   
videni
videni commented Sep 29, 2019

what is prefer way to add relation and remove relation? I found example as below, but I did't find any document about the two methods.

 case 'ADD_AUTHOR_TO_BOOK':
        Book.withId(action.payload.bookId).authors.add(action.payload.author);  // add new entity ,  add relation?  this doesn't work.
        break;
    case 'REMOVE_AUTHOR_FROM_BOOK':
        Book.withId(action.payload.bo

Improve this page

Add a description, image, and links to the orm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the orm topic, visit your repo's landing page and select "manage topics."

Learn more