Commits (5)
......@@ -4,7 +4,7 @@
<RootNamespace>Coscine.Database</RootNamespace>
<AssemblyName>Coscine.Database</AssemblyName>
<TargetFrameworks>net5.0;net461</TargetFrameworks>
<Version>2.8.0</Version>
<Version>2.9.0</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......
using Coscine.Configuration;
using Coscine.Configuration;
using Coscine.Database.DataModel;
using Coscine.Database.ReturnObjects;
using Coscine.Database.Util;
......@@ -333,6 +333,10 @@ namespace Coscine.Database.Models
{
resource.LicenseId = resourceObject.License.Id;
}
else
{
resource.LicenseId = null;
}
// the application profile can not be altered after creation
// resource.ApplicationProfile = resourceObject.ApplicationProfile;
......@@ -565,4 +569,4 @@ namespace Coscine.Database.Models
return compare == "rdss3" || compare == "rdss3ude" || compare == "rdss3nrw" || compare == "rdss3tudo";
}
}
}
\ No newline at end of file
}
......@@ -325,9 +325,7 @@ namespace Coscine.Database.DataModel
{
entity.Property(e => e.Id).HasDefaultValueSql("(newid())");
entity.Property(e => e.DisplayName)
.IsRequired()
.HasMaxLength(50);
entity.Property(e => e.DisplayName).HasMaxLength(200);
});
modelBuilder.Entity<LinkedResourceType>(entity =>
......